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

查看:96
本文介绍了用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天全站免登陆