If you were in that tank, you'd be gone just as fast.
@unflexianАй бұрын
what integration method?
@timgorringe6668Ай бұрын
def three_body(t, Y, G, masses): x1, y1, x2, y2, x3, y3, x1_dot, y1_dot, x2_dot, y2_dot, x3_dot, y3_dot = Y r12 = np.sqrt((x1 - x2)**2 + (y1 - y2)**2) r13 = np.sqrt((x1 - x3)**2 + (y1 - y3)**2) r23 = np.sqrt((x2 - x3)**2 + (y2 - y3)**2) dxdt= [x1_dot, y1_dot, x2_dot, y2_dot, x3_dot, y3_dot, G * masses[1] * (x2 - x1) / r12**3 + G * masses[2] * (x3 - x1) / r13**3, # acceleration of m0 due to m1, m2 G * masses[1] * (y2 - y1) / r12**3 + G * masses[2] * (y3 - y1) / r13**3, G * masses[0] * (x1 - x2) / r12**3 + G * masses[2] * (x3 - x2) / r23**3, # acceleration of m1 due to m0, m2 G * masses[0] * (y1 - y2) / r12**3 + G * masses[2] * (y3 - y2) / r23**3, G * masses[0] * (x1 - x3) / r13**3 + G * masses[1] * (x2 - x3) / r23**3, # acceleration of m2 due to m0, m1 G * masses[0] * (y1 - y3) / r13**3 + G * masses[1] * (y2 - y3) / r23**3] return dxdt G = 1.0 # Gravitational constant (for stable orbit demos) masses = [1.1, 0.9, 1.0] # masses m1, m2, m3 initial_conditions = [-1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, -1.0, 0.0, 0.0, 0.0, 1.0] # stable figure eight, euler solution time, tspan = np.linspace(0, 50., 1000), (0.0,50.) solution = solve_ivp(three_body, tspan, initial_conditions, method='Radau', args=(G, masses), t_eval=time)
@jimmygomtor3 ай бұрын
Thanks professor! I don't know where you teach, but this has been a helpful video for me (in México) while studying for my computational physics exam. Your students are lucky ones!
@timgorringe66683 ай бұрын
thank you and good luck with your exam
@borntoclimb71164 ай бұрын
Impressive
@bernardobarrientos40075 ай бұрын
Thank you for helping me lead physics. You’re amazing for taking the time to make all these videos
@timgorringe66685 ай бұрын
I'm glad they helped
@sbzguadafoc5 ай бұрын
I dont think the imshow plot is rotated at all. I believe the Potential has been set to V for the first column rather than the first row
@timgorringe66685 ай бұрын
thank you
@SIGSEGV13376 ай бұрын
oh so that's how i pronounce it
@bruh-xc9ru5 ай бұрын
he is pronouncing it wrong, it is a French name, so it should be mer sen
@satyam60656 ай бұрын
is this code for double pendulum?
@timgorringe66686 ай бұрын
no, its a single pendulum
@owen71856 ай бұрын
3.7J
@owen71856 ай бұрын
Change in GPE is in J not N
@owen71856 ай бұрын
Brilliant lecture Tim, I fully agree with your teaching methods
@timgorringe66686 ай бұрын
thank you!
@sbzguadafoc6 ай бұрын
hey thanks for sharing! Is it possible for you to share the code so that I can see exactly how to plot these poincare points? Im having a real hard time finding the Nperiods variable
Thank you. Could you please explain how to build the matrix M?
@timgorringe66687 ай бұрын
its described the accompanying video kzbin.info/www/bejne/pH3HZKl6iKdlkMU
@mahyarservati37557 ай бұрын
The course is amazing, thank you. I have not seen a course that explains chaos as well as you do.
@hannahgwell7 ай бұрын
I am not getting 0.1J/-0.1J when I plug in the values. I keep getting 8.1J/-8.1J.
@timgorringe66687 ай бұрын
oops - you are right its 9e9*3e-6*3e-6/0.01 = 8.1 Joules not 0.1 Joules - thank you!
@prateek31677 ай бұрын
amazing lecture 😍
@frownyclowny695510 ай бұрын
Next time get better fidelity lol
@elpresidente2810 ай бұрын
Well done!'
@karlord327410 ай бұрын
savior! my professor gave us as a bonus assignment to be able to explain this. Now I'm gonna get 30 extra points on my final quiz. Thank you so much!
@DaddyRaiden10 ай бұрын
thx 👍
@garretthensley875 Жыл бұрын
Promo*SM 💞
@sundreajana5553 Жыл бұрын
Very good , :)
@alinur2667 Жыл бұрын
Thank you so much, this video was very helpful.
@Kr1noxxx Жыл бұрын
thats some crazy rub rub
@marnbu2936 Жыл бұрын
Good rubbing man
@PazyalAlegria120 Жыл бұрын
I wakeup at 2 AM thinking how to... Here it is... THANK YOU. 🙏
@hubstrangers3450 Жыл бұрын
Python and recursion not a good combination in software development.....something like that
@hoyoungwoo5561 Жыл бұрын
your sermina no no no ni
@hoyoungwoo5561 Жыл бұрын
how about teach monte calo simulation in now???
@TheAnimammal3 жыл бұрын
I hate to have to tell you this, but if I know that you are making a stupid mistake and I do not tell you, then that would be bad behaviour. You are demonstrating conservation of angular energy. We have been making a stupid mistake by telling each other that "it spins faster". If you actually measure it, you will find that it does not "spin faster" enough and we have been making a stupid mistake for three hundred years.