Python equation parser

后端 未结 3 714
情深已故
情深已故 2021-01-21 16:38

I\'m writing a program which needs a user input for an polynomial function of x. I\'m using Tkinter and python 2.5.

I have a parser method which so far takes the inputt

3条回答
  •  长发绾君心
    2021-01-21 17:02

    It looks like you're implementing something that already exists, in python and other math languages. See for example:

    http://www.gnu.org/software/octave/doc/interpreter/Solvers.html

    http://stat.ethz.ch/R-manual/R-devel/library/base/html/solve.html

提交回复
热议问题