Python nonlinear systems of equations using fsolve

Поделиться
HTML-код
  • Опубликовано: 15 сен 2024
  • Python, solving systems of nonlinear equations using fsolve. The corresponding notes are here: nbviewer.jupyt...

Комментарии • 17

  • @ziyuange1914
    @ziyuange1914 4 года назад +7

    You literally explain every step. A perfect teacher for me! Thank you very much.

  • @16chechito
    @16chechito 6 месяцев назад

    Thank you for the explanation. It was very usefull for my college project.

  • @aditishahani5987
    @aditishahani5987 3 года назад +2

    Super helpful!! Especially for people like myself who haven't had any formal intro to python but need it for some work!
    Thanks a lot!

  • @varaleo1985
    @varaleo1985 3 года назад +1

    Thank you, one of the best explanations I have found so far on RUclips.

  • @benjaminasalgado2061
    @benjaminasalgado2061 3 года назад +2

    ME SALVASTE EL RAMO WEON
    TE AMO CON LA VIDAAAAAA

  • @ryanthomas2374
    @ryanthomas2374 Год назад

    I like your format and your example videos thank you.

  • @deni9264
    @deni9264 3 года назад +1

    Thank you so much for this tutorial. Clear and concise. Can you please demonstrate solving a dependent system of non-linear equations with python?

  • @ivanuskov862
    @ivanuskov862 3 года назад +1

    Great video! Helped a lot, thank you!

  • @abenderbey
    @abenderbey 4 года назад +1

    Lot of thanks!

  • @Dusadof
    @Dusadof Год назад

    great

  • @musixbox7652
    @musixbox7652 Год назад

    can this problem be solved analytically?

  • @sdu28
    @sdu28 3 года назад

    At 9:25, why is the second equation defined as 'np.sin' instead of simply 'sin'?

    • @ignitebyuedu
      @ignitebyuedu  3 года назад +2

      Python doesn't come with sin as a function, you need to get it from a library. In the code here, I am using numpy. The line "import numpy as np" then provides access to the numpy functions: np.sin, etc. If I would have done "from numpy import *" or "from numpy import sin" then we could just write sin(x) instead of np.sin(x), but what is done in the code is generally the preferred approach. You can also get sin from the math library: from math import sin.

    • @sdu28
      @sdu28 3 года назад

      @@ignitebyuedu thanks, I understand your explanation but my question is - As I understand, using ‘np’ before sine means we’re asking python to calculate sine of the elements of a numpy array (sine(array elements)) whereas, as far as this particular problem is concerned, we just need sine(of a number), then isn’t math.sin preferable ? Another question - if we take the equations as user inputs on a command terminal , is the user expected to use math or numpy while entering functions like sine, cosine, exponential etc.? Thanks

    • @ignitebyuedu
      @ignitebyuedu  3 года назад

      @@sdu28 np.sin can take a single number or an array. For numerical work, I always us numpy and I cannot remember the last time I bothered with "import math," but it's really up to you.

  • @mihir9173
    @mihir9173 4 года назад

    What is the significance of the guess value?

    • @ignitebyuedu
      @ignitebyuedu  4 года назад +1

      Nonlinear equation solvers are normally iterative. They require a guess value as a starting point for the iteration. Each iteration ideally improves the solution from the initial value.