NDSolve error with non-numerical derivative value at t==0

1 reply · 3K views · last reply
JohnSimpson
Messages
89
Reaction score
0
I'm having a problem with NDSolve. See attached picture. I have a package generating a set of ODE's, which I display, and then the next line is the NDSolve integration. I get an "Encountered non-numerical value for a derivative at t==0" error, and I can't spot the mistake. The one thing that looks suspicious to me is the terms in the Equations of Motion that look like "0.05.2". It looks like it should be "0.05*2", but I don't understand why it doesn't just evaluate it.

Best Wishes
-John
 
Attachments
  • Mathematica notebook showing two coupled second-order ODEs for Theta1 and Theta2 printed as output, followed by an NDSolve call with initial conditions and an error message about a non-numerical derivative at t==0.
    Mathematica.jpg
    44.7 KB · Views: 487