The Double Pendulum in PYTHON

Поділитися
Вставка
  • Опубліковано 23 лис 2024

КОМЕНТАРІ •

  • @fateenahmed659
    @fateenahmed659 2 роки тому +9

    This is exactly what i was looking for. Thank you for the amazing tutorial and explanation!

  • @adityaariewijaya9284
    @adityaariewijaya9284 3 роки тому +21

    You're a very good teacher. Thanks for this.
    Would there be any future video on FEM on Python?

  • @cambridgebreaths3581
    @cambridgebreaths3581 3 роки тому +9

    Man you are a blessing. Thank you a million. Can you please just recommend a perfect starting point to learn differential equations for a beginner from 0 to 1 , with the same level of depth, clarity and and an ultimate goal to master the all the variety of diff equations to the highest level possible. Thank you kindly again

    • @MrPSolver
      @MrPSolver  3 роки тому +9

      I think for next week I'll make an entire video just about differential equations in python.

    • @cambridgebreaths3581
      @cambridgebreaths3581 3 роки тому +1

      @Mr. P Solver Brilliant. Am sure it will be mesmerising. Thanks

    • @hsh7677
      @hsh7677 3 роки тому +1

      @@MrPSolver can’t wait!!!

  • @blackguardian89
    @blackguardian89 3 роки тому +7

    Mr. P Solver uploaded a new video... This day just becomes better :) Double pendulum - absolute classics! Thanks, man!

  • @oceansofmath4732
    @oceansofmath4732 Місяць тому

    Hello! Great videos. I really appreciate the help. Perhaps it is worth mentioning that the chaotic behavior of the ODE in the case of the double pendulum will cause numerical error to accumulate exponentially fast in any simulation.

  • @mingshey
    @mingshey Рік тому

    Whoa, wonderful job! I’ve been working on the same problem with Maxima. The process is essencially the same. I’ve been expanding the program to deal with generic number of multiplicity of the pendula. But the burden of symbolic manipulation of differential equations grew above the capacity of my computer when the number of bobs was larger than 4. I think I should try to attack the problem in colab with sympy. Great thanks for sharing!

  • @Kakikiwi-eu2kr
    @Kakikiwi-eu2kr Рік тому +1

    I'm trying to replicate, and I've got one little ugly problem: sympy outputs are not wrapped into multiple lines like he has for cell 24, 27, etc. I get one loooong line I have to scroll through. Anyone faced that problem ?

  • @agustinbrusco7173
    @agustinbrusco7173 3 роки тому +3

    really good video, thanks a lot. although I must admit I arrived hoping for some insight into the physics.mechanics module of sympy. Are there any reasons you choose to do things this way? I also use sympy like you did in the video, but I'm interested in knowing if there are any advantages on learning the whole sympy.physics.vectors and .mechanics, over just implementing the sympy variables and functions like this
    anyway, you just earned a follower, greetings from Argentina!

  • @owisalsabbagh7577
    @owisalsabbagh7577 Рік тому

    very nice explaination, I tried using the same principle to simulate a double inverted cart pole. After adding and modifiying the equations to include a cart and its movement and the force applied on it , but I faced an error when trying to use odeint the way you explained in the video. any tips?

  • @ivolol
    @ivolol 3 роки тому +2

    You might consider making a video that could use a PID to get the pendulum holding upright? Not sure if PID works for that or not

    • @marijnpf
      @marijnpf 2 роки тому

      Have you found a way?

  • @babajani3569
    @babajani3569 2 роки тому +2

    Hello. Sorry about my ignorance. I don't actually know much about programming but I had a question if it is all right with you. Did you solve the Euler Lagrange equations using the Runge Kutta method? If not then is there to just immediately employ the Runge Kutta method to the Lagrange's of motion without deriving them first on python.
    Thank you.

  • @alekseykozin8108
    @alekseykozin8108 Рік тому

    You are awesome, thank you very much for your work

  • @hsh7677
    @hsh7677 3 роки тому +1

    Thank you so much!!
    Very helpful!

  • @julyatonon5115
    @julyatonon5115 2 роки тому

    incredible video, i learnt a lot. thank you.

  • @shohrehhoushmandsajjadi1861
    @shohrehhoushmandsajjadi1861 2 роки тому +2

    Thank you so much for such a nice presentation. It was greatly helpful. Could you also go through plotting time and energy of the system?(E=T+V)

    • @lucid_
      @lucid_ Рік тому

      Wouldn’t that be constant? Assuming we ignore air resistance

  • @prietjepruck
    @prietjepruck Рік тому

    Great explanation, thanks a lot.

  • @marcrindermann9482
    @marcrindermann9482 Рік тому

    is there a reason not to simplify the expressions for the second derivatives?

  • @ItumelengS
    @ItumelengS Рік тому

    High quality stuff here😮

  • @skillick
    @skillick 2 роки тому

    If your animation isn't working at the end, check the second last line, try changing it to:
    ani = matplotlib.animation.FuncAnimation(fig, animate, frames=1000, interval=50)

  • @AryVinicius
    @AryVinicius 3 роки тому +1

    Awesome video. I'll give this a try to practice.
    Maybe the next video is about adding friction in the joints? 🤔

    • @MrPSolver
      @MrPSolver  3 роки тому +3

      This is a fantastic idea! Definitely will show up in a future video

  • @JulieStardoll
    @JulieStardoll 2 роки тому

    could you do one on solving kepler problem?

  • @Serena-nm8sd
    @Serena-nm8sd 2 роки тому

    Hi, thank you so much for this. I was wondering, what do simplify=false and rational=false mean? Thank you in advance

  • @nsumanth18
    @nsumanth18 2 роки тому

    Nice video! A doubt - How to trace the path of the two pendulums?? i.e. How to make their path visible?

  • @scar6073
    @scar6073 2 роки тому

    I'm coding it as I'm watching. Planning to impress my friends lol

  • @GuizinGuizao
    @GuizinGuizao Рік тому

    Great video and excellent git

  • @jiswinvarghese1326
    @jiswinvarghese1326 3 роки тому

    list index out of range
    'tuple' object is not callable
    i got these errors in the last line of code "ani.save('double_pendulom.gif',writer='pillow',fps=25)" . so could not run see the animation. apart from that everything was fine.

    • @gerrievanstaden3416
      @gerrievanstaden3416 3 роки тому +1

      I had the same issue. My fix was that I made a spelling error in my animate function. After I fixed that it worked perfectly

    • @jiswinvarghese1326
      @jiswinvarghese1326 3 роки тому

      @@gerrievanstaden3416
      Thanks bro i will lookinto that

  • @AJ-et3vf
    @AJ-et3vf 3 роки тому +2

    Awesome! Immediately saw this right now on being uploaded and immediately watched. Once again, very nice and inspiring.
    Now next do a spherical double pendulum 😁😁😁 haha jk.

  • @mindeys
    @mindeys 6 місяців тому

    Looks like 3 body problem. Also has 3 points.

  • @I_am_FRANCO
    @I_am_FRANCO Рік тому

    22:22 friction¿

  • @ilyashulika3538
    @ilyashulika3538 2 роки тому

    What a great video )))

  • @謙虛的學仔
    @謙虛的學仔 Рік тому

    love from outerspace

  • @muhammadikbal8944
    @muhammadikbal8944 2 роки тому

    why is my animation not moving?

  • @AmoghavarshaN
    @AmoghavarshaN 3 роки тому

    Awesome

  • @h2o11h2o
    @h2o11h2o 2 роки тому

    nice

  • @haritssyah7434
    @haritssyah7434 Рік тому

    your face takes up quite a bit of the screen, blocking anything behind it