Simplest way to solve mathematical equations in Python

后端 未结 15 1687
自闭症患者
自闭症患者 2020-12-13 10:15

I want to solve a set of equations, linear, or sometimes quadratic. I don\'t have a specific problem, but often, I have been in this situation often.

It is simple to

15条回答
  •  独厮守ぢ
    2020-12-13 10:45

    For inexact solutions, read up on linear programming and sequential quadratic optimization, then search for Python libraries that performs such optimizations for you.

    If the equations require integer solutions, you should search for Diophantine equation solvers for Python.

    Just note that using a simple solver for Project Euler is missing the point. The fun, and educational part, is learning how to solve it yourself using primitive methods!

提交回复
热议问题