- #36
Integral
Staff Emeritus
Science Advisor
Gold Member
- 7,255
- 66
\Originally posted by Integral
Franz,
There must remain a significant error in your code. The last run should match the small angle approximation solution of
[tex] \theta (t)= .1 cos( \frac {gt} l)[/tex]
This says the max velocity should .1 g/l. if you look at the run I did in Excel with a simple Euler method you can verify that. Also you should have a period of 2.007 seconds, this corresponds to my Euler run but not your last run.
Unfortunatly there remains a problem in your code. I cannot see it yet but will return to this shortly
(My wifes car has a flat, seems that she thinks that problem has priority! The Nerve!)
At .1 initial postion the difference between this equation and our RK model should be on the order of h^4, we should agree to 3-4 decimals.
BTW g in this model must be positive, its sign has been factored in already.
Last edited: