Pendulum Motion in PYTHON

preview_player
Показать описание
No paper required! Set up the problem, derive the differential equations, and solve them with only sympy and numpy. Also sympy if you're watching this I hope you enjoyed the FIRE theme song I made for you.

Code located in the link below. Go to "Python Metaphysics tutorials" and then "Vid 4"

Рекомендации по теме
Комментарии
Автор

I cant explain how much I appreciate this channel. It's making me a better physicist and you make it look so cool

aliexpress.official
Автор

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!

srijayadhikari
Автор

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!

bingodeagle
Автор

Best channel on physics, engineering and python! A real treasure trove.

renegaed
Автор

Awesome! I love the animations! Definitely hope to do animations too myself. As always, great content.

AJ-etvf
Автор

Thanks for your videos! Although I am now retired, I am just having fun working physics problems, and your videos are incredibly helpful.

allenjackson
Автор

Looking forward to your 1K and 1M subs videos

christophekapuschenski
Автор

New subscriber here, appreciate a lot your videos (already in the discord channel) keep going

gustavopazrequejo
Автор

At 8:30, the order of the terms are not keeped, the m and the g are inverted.
Is there a way to avoid this ?
Thanks for yours video. Very very useful.

lioneloddo
Автор

how would you go about plotting theta dot vs theta inorder to obtain the phase space of these motions?

luisruiz-iedm
Автор

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?

mprencipe
Автор

great video, how would i add a dissipation function?

PtrickJmes
Автор

How do you get output in beautiful LATEX form? It doesn't happen when I do it.

asimdahal
Автор

Thank you for your video. How can we use other numerical solvers such as RK45, ODE45, besides odeint. can you please give us some recommendation?

robellish
Автор

Help me, please. Instead of showing a proper d(theta)dt, it shows Derivative(\theta(t), t) instead.

jtong
Автор

how did you learn to to do that?!!
I want to do that too!

HamzaAsif-ov
Автор

What about an absolut() curve pendelum? Something about the derivative from math

perlindholm
Автор

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 "<string>", 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

emersoncpp
Автор

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.

yashshukla