Solving Differential Equations using scipy.odeint in Python!

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

КОМЕНТАРІ • 13

  • @Idk-mc2dd
    @Idk-mc2dd 7 місяців тому +1

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

    • @YounesLab
      @YounesLab  7 місяців тому

      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!

  • @sagarshrestha9661
    @sagarshrestha9661 4 місяці тому

    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  4 місяці тому

      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 (ua-cam.com/video/nT16-yQrnFk/v-deo.html)
      Now for the real spring contraction and relaxation is an interessting topic I will through it! Thank you for your suggestion!

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

    This is really good. Greetings from Croatia!

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

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

  • @amineaissiou
    @amineaissiou 9 місяців тому

    Nice work

  • @lionelmartinez6810
    @lionelmartinez6810 9 місяців тому

    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  8 місяців тому +1

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

  • @lionelmartinez6810
    @lionelmartinez6810 9 місяців тому

    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?

  • @saodatqurbonqulova1527
    @saodatqurbonqulova1527 8 місяців тому

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

    • @YounesLab
      @YounesLab  7 місяців тому

      @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]

  • @saodatqurbonqulova1527
    @saodatqurbonqulova1527 8 місяців тому

    Please can you teach me