I recently finished an assignment to visualise the lagrangian of a simple pendulum by plotting the odeint solution along with the hands-on mathematical solution of the second degree diff equation. I loved the way you put the animations. I'm gonna try it as well!
wow this is amazing, I recently undertook a long project for my degree based entirely on numerically integrating the 3 body problem, finding this out now makes me wonder how much time I could have saved just using sympy. Thanks so much for this content!
Very nice work! Congrats! I don't know if you've been through this but I'm having the following error when calling the lambdify method: deriv2_f = smp.lambdify((g, the, the_d), deriv_2) File "", line 1 lambda _Dummy_168,_Dummy_169,Derivative(\theta(t), t): (0.25*(-_Dummy_168 + 4.0*Derivative(_Dummy_169, t)**2)*tan(_Dummy_169)) ^ SyntaxError: invalid syntax
I was trying to compute kinetic energy by lambdifying the expression for T (getting T_f). I got no error when I did the lambdification, but when I invoked T_f with the appropriate parameters I got the error name 'Derivative' is not defined. What to do?
You know you are doing awesome things on youtube, but it's hurting me so bad that you could not get the same amount of views that one would get with the shity stuff they are doing.