Solving Systems Of Equations Using Sympy And Numpy (Python)




[ad_1]

In this video I go over two methods of solving systems of linear equations in python. One method uses the sympy library, and the other uses Numpy.

Source


[ad_2]

Comment List

  • Andrew Dotson
    December 24, 2020

    Why did u write " -1" in equation.2 when it is supposed to be " -y "? Lmao i don't get it πŸ˜…
    P.s love ur vids ❀

    Squadfam out

  • Andrew Dotson
    December 24, 2020

    Can you please tell me how I can solve something like this:
    A = 12911

    eq1 = Eq(A+y-x, 12912)

    eq2 = Eq(eq1+y1-x1, 12333 )

  • Andrew Dotson
    December 24, 2020

    Love from Pakistan !

  • Andrew Dotson
    December 24, 2020

    Great video!!!! Thank you!

  • Andrew Dotson
    December 24, 2020

    What’s does sp.function() I removed it and it still worked πŸ˜…

  • Andrew Dotson
    December 24, 2020

    The second row be :
    [3 . 0 . -1]

  • Andrew Dotson
    December 24, 2020

    Do You know the trick to add space between variables in latex if I use it? Example "a, b = sp.symbols('a b'); a*b; will give "ab". So I prefer "a b". I have a solution : "a, b = sp.symbols('a~ b~'); but do You know something better ?

  • Andrew Dotson
    December 24, 2020

    Can we do Gaussian Elimination with Sympy and/or Numpy?

  • Andrew Dotson
    December 24, 2020

    Good video

  • Andrew Dotson
    December 24, 2020

    Awesome bro

  • Andrew Dotson
    December 24, 2020

    I got wrong result

  • Andrew Dotson
    December 24, 2020

    Hm… Can we really say that SymPy and NumPy are equivalent when it comes to solving equations? One is based on symbolic algebra and the other one does calculations on raw numbers. Simple equations, where we already know the solution algorithm, can be solved with NumPy. Non-linear systems, where no variable or constant matrices may be easily defined, rely on SymPy. Also, SymPy non-linear solvers (numeric methods) are much more refined than NumPy. I would suggest using NumPy for complex math and array operations (also consider that NumPy is compatible with Numba – and may run with machine code speed), and relying on SymPy to solve equations where necessary.

  • Andrew Dotson
    December 24, 2020

    the sp.Function lines are unnecessary

  • Andrew Dotson
    December 24, 2020

    10:14 someone still has some python2 habits here πŸ˜€ no f-print no braces

  • Andrew Dotson
    December 24, 2020

    Dear Andrew Dotson,

    Thank you for your video. Most helpful.

    I was wondering if, perhaps, you could post some tips/techniques for evaluating the stability of ODE using Python.

    Recently, there has been great development in that field using Python. One example is the LMFIT Python's library, which is most straitfoward for modelling linear and non-linear syatems. Nevertheless, we still lack a proper method for evaluating stability in an ODE system.

  • Andrew Dotson
    December 24, 2020

    Hello Andrew Dotson!πŸ˜‡ I've been struggling with running codes in python? After I watched your video, maybe you can help me to complete my homework which is all about Systems of Nonlinear Equation? I wish you would notice me. 😊 Godbless you and your youtube channel. More power to you.πŸ˜‡πŸ’―

  • Andrew Dotson
    December 24, 2020

    what is the error in attribution for printing.int_printing(use_latex=True)

  • Andrew Dotson
    December 24, 2020

    How would you code this if you wanted to do everything from scratch?

  • Andrew Dotson
    December 24, 2020

    Would help if you had the code written out so we don't have to re-invent the wheel and type it all out?

  • Andrew Dotson
    December 24, 2020

    what if this does not have any solution

  • Andrew Dotson
    December 24, 2020

    I want to see how you do it with sympy
    thank in advance

  • Andrew Dotson
    December 24, 2020

    hi good stuff
    can you please take for example lorentz or duffing nonliner system
    thanks

  • Andrew Dotson
    December 24, 2020

    Can we solve set of ODE numerically using python if we have supporting data in an Excel sheet, then would you please teach!!

  • Andrew Dotson
    December 24, 2020

    Nice video. Since this video is over a year old, you may have figured this out by now. Using control-Enter is the same as having to move your mouse to click on run.Use that for about 10 minutes and it will become instinct. The little bit of time saved can add up over a long coding session.

  • Andrew Dotson
    December 24, 2020

    Shut up, Ryan Reynolds. I can't focus on the math.

    (EDIT: Ah, well, I should have known I wasn't going to be the only person to say that. Still, though. You could pass as his more serious cousin, Bryan Reynolds.)

  • Andrew Dotson
    December 24, 2020

    the video was nice but would u like to give me the answer that what will be do by us when the solution must be infinite it gives an error

  • Andrew Dotson
    December 24, 2020

    Do you know of any good tutorials on how to get Sympy and Numpy into Jupyter Notebooks?

  • Andrew Dotson
    December 24, 2020

    useless, looking for trigonometric system of equations, not a simple linear one which can be found all over the internet. Really no need for a dragged out 15 minute video on it

  • Andrew Dotson
    December 24, 2020

    guy you are genius, but your face does not convey any sort of code to us, plz reduce your face and increase the code detail, have a good day sir

  • Andrew Dotson
    December 24, 2020

    You look like Ryan Reynolds. Very informative vid.

  • Andrew Dotson
    December 24, 2020

    When I import sympy it gives error ..That no moduled named sympy….Why??

  • Andrew Dotson
    December 24, 2020

    print Statement must be surrounded in(" parenthesis") for upto date working!!

  • Andrew Dotson
    December 24, 2020

    0:00 "What's going on, smart people!" – There. That's where you lost me. πŸ˜€ Just kidding. Nice video. I didn't know about the latex trick. Thank you for sharing.

  • Andrew Dotson
    December 24, 2020

    Is it possible to solve this with a step by step solution? Like Wolfram Alpha does?

  • Andrew Dotson
    December 24, 2020

    Hey can you integrate (3x^2 + 1) using this library to get output as x^3 + x?
    If so, can you explain the procedure for this? Needed help for this asap

  • Andrew Dotson
    December 24, 2020

    how can I assign the values to the variables?

  • Andrew Dotson
    December 24, 2020

    cool done watch until end.

Write a comment