User Portlet
Discussions |
---|
A Google search for "mathematica manipulate ndsolve" shows several examples of how to do this. |
Hi, I am trying to plot the angles of a spherical pendulum fixed to a oscillating cart. I have derived the equations of motion, when I try to solve the equations using "NDSolve", following error occurs: > `NDSolve::ndsz: At t ==... |
Is it possible that second Lagrangian term was supposed to be `m2/2*l2^2*\[Theta]2'[t]^2` (note derivative of theta_2)? With that change the integration does not go singular and the plot seems reasonable. |
Disregarding physics and considering what you have done only programming-wise 1. Boundary conditions need to be used with equal (==) rather then Set (i.e, a single = sign) 2. There is a problem with the differentiation (the first part) 3. You... |
I plotted your result using Plot[\[Theta][t] /. sol, {t, 0, 10}] It's constant, equal to Pi. |
Thank you very much, the "Remove" Command works very well. Have a nice day. |
Thanks for your answer, I reinstalled Mathematica and now it works. |