Solving Differential Equations using scipy.odeint in Python!

Sdílet
Vložit
  • čas přidán 25. 08. 2024

Komentáře • 13

  • @Idk-mc2dd
    @Idk-mc2dd Před 5 měsíci +1

    BRO DONT STOP POSTING, Your videos are so underrated and helpful

    • @YounesLab
      @YounesLab  Před 5 měsíci

      Thank you for your support @Idk-mc2dd !! I very much appreciate it, I've been lacking good topics to treat but I just found one I am sure will be of great use when it comes to modeling Differential Equation Systems!

  • @antunbrnic7057
    @antunbrnic7057 Před 4 měsíci

    This is really good. Greetings from Croatia!

    • @YounesLab
      @YounesLab  Před 4 měsíci

      A pleasure to hear it! My salute to Croatians! 😄

  • @sagarshrestha9661
    @sagarshrestha9661 Před 2 měsíci

    Your videos are so much informative and lucid❤.I was struggling in understanding the ODE's and watched several youtube videos but couldnt get it done...Your videos made me understand all the concepts.Thank you so much..I'm the guy who never comments to the youtube😅 but you made me do it...Can you make the video on animation of spring mass system showcasing the real spring contraction and relaxation

    • @YounesLab
      @YounesLab  Před 2 měsíci

      I very glad to hear your feedback and know it was helpful! ^^' I did make a video in the past about animating (simple animation) the mass-spring system if you checked it out already, where we can see the elongation of the spring (czcams.com/video/nT16-yQrnFk/video.html)
      Now for the real spring contraction and relaxation is an interessting topic I will through it! Thank you for your suggestion!

  • @amineaissiou
    @amineaissiou Před 6 měsíci

    Nice work

  • @saodatqurbonqulova1527
    @saodatqurbonqulova1527 Před 5 měsíci

    How to find the general solution of a system of differential equations? In case no initial condition is given

    • @YounesLab
      @YounesLab  Před 5 měsíci

      @saodatqurbonqulova1527, If you want to solve a system symbolically, the Sympy Library will be your best (and only) option, since odeint uses a numerical scheme.
      I would suggest you going to check the SymPy documentation on how to solve differential Equations here: docs.sympy.org/latest/guides/solving/solve-ode.html
      From what I can say, you can achieve it using the dsolve function, here is a small code snippet:
      from sympy import symbols, Function, Eq, dsolve
      # Define symbols and functions
      t = symbols('t') # Independent variable
      x, y = symbols('x y', cls=Function) # Dependent variables
      # Define the system of differential equations
      # Example: dx/dt = y, dy/dt = -x
      eq1 = Eq(x(t).diff(t), y(t))
      eq2 = Eq(y(t).diff(t), -x(t))
      # Solve the system of differential equations
      solution = dsolve((eq1, eq2))
      # Print the general solution
      sol_eq1 = solution[0]
      sol_eq2 = solution[1]

  • @lionelmartinez6810
    @lionelmartinez6810 Před 6 měsíci

    Hola, ¿podrías hacer un video sobre el campo electrostático de un condensador plano y finito con placas paralelas para analizar especialmente el efecto borde?

  • @lionelmartinez6810
    @lionelmartinez6810 Před 6 měsíci

    Hello, could you make a video about the electrostatic field of a flat and finite capacitor with parallel plates to analyze especially the edge effect? thank

    • @YounesLab
      @YounesLab  Před 6 měsíci +1

      Thank you for your suggestion Lionel, I will take the time to Investigate about this subject.
      Fair Well

  • @saodatqurbonqulova1527
    @saodatqurbonqulova1527 Před 5 měsíci

    Please can you teach me