在 Python 中解决数学方程的最简单方法 [英] Simplest way to solve mathematical equations in Python

查看:30
本文介绍了在 Python 中解决数学方程的最简单方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想解一组方程,线性的,有时是二次的.我没有具体的问题,但我经常遇到这种情况.

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.

使用 wolframalpha.com(与 Mathematica 等效的网络)来解决这些问题很简单.但这并没有提供 iPython shell 的舒适性和便利性.

It is simple to use wolframalpha.com, the web equivalent of Mathematica, to solve them. But that doesn't provide the comfort and convenience of an iPython shell.

是否有一个简单的库可以从 python shell 处理线性和二次方程?

Is there a simple library to work on linear and quadratic equations from a python shell?

就我个人而言,我觉得使用 Casio 991 MS 科学计算器非常方便.我知道如何设置变量、求解方程以及做很多事情.我想要这样的工具,最好在 ipython shell 中使用.我很惊讶没有找到任何东西.我对圣人印象不够深刻;也许我错过了什么.

Personally, I find it extremely convenient to use the Casio 991 MS scientific calculator. I know how to set variables, solve equations, and do a lot. I want such a tool preferably usable from within an ipython shell. I am surprised not to have found any. I'm not impressed enough by sage; perhaps I am missing something.

推荐答案

sympy 正是您要找的.

这篇关于在 Python 中解决数学方程的最简单方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆