Python Symbolic and Numeric Solutions

Поділитися
Вставка
  • Опубліковано 6 лют 2025
  • SymPy is a Python package that solves and manipulates symbolic expressions. Scipy.optimize.fsolve is compared to SymPy along with other example problems.

КОМЕНТАРІ • 15

  • @sokrethpak7460
    @sokrethpak7460 Рік тому +2

    The best video, i have ever meet!❤ Very thank

  • @sriharshakodati
    @sriharshakodati 4 роки тому +4

    I wish I can thank you in person. Your videos are soooo much helpful.
    May I ask a quick question. If the equation 1 and 2 are a bit complicated and we want to solve for x and y, How can we mention that we do not want any negative values as solution?
    Thanks!!!!!!!!!!!!

    • @apm
      @apm  4 роки тому +1

      You can add lower bounds of zero to x and y. See apmonitor.com/che263/index.php/Main/PythonOptimization

  • @barnowl2832
    @barnowl2832 4 роки тому +3

    In Python can you define equations like you would in Matlab?
    i.e to do something like
    MyEqn = 0.1 * x^5 - x^2 == 10 sin (x)
    solve (MyEqn, x)

    • @apm
      @apm  4 роки тому +1

      Yes, symbolic solutions are with Sympy. Check out lesson 10 here: apmonitor.github.io/data_science/

  • @bishalsarkar73
    @bishalsarkar73 4 роки тому +2

    Sir ur videos are awesome....can you suggest me a book on python...

    • @apm
      @apm  4 роки тому +1

      I don't have a book but here is a free online course: apmonitor.com/che263 for engineers

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

      Here's a free online book:
      pythonnumericalmethods.berkeley.edu/notebooks/Index.html

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

      @@AJ-et3vf thanks

  • @BlueSkyGoldSun
    @BlueSkyGoldSun 2 роки тому +1

    Can we make Binomial equation in symPy?

    • @apm
      @apm  2 роки тому +1

      Yes, please see apmonitor.com/pds/notebooks/10_solve_equations.html

  • @PauloVictor-hp9op
    @PauloVictor-hp9op 5 років тому +2

    how can i solve transcendental equations with numpy?

    • @apm
      @apm  5 років тому +1

      Here are some suggestions: stackoverflow.com/questions/43047463/find-root-of-a-transcendental-equation-with-python also take a look at Python Gekko