Provide user equations in Python

I am a very new / inexperienced Python programmer. I teach math and try to create a graphical graphical graphical interface suitable for schoolchildren.

As for plotting, I would ideally want to display the equation that the user enters [eg y = (x^2)/3 ] in a well-formatted style - perfectly updated in real time when the user enters their expression.

I looked at features like matplotlib , but it looks like the user will need to enter the above expression as something like frac{x^2,3} , which is not ideal for students.

Thanks a lot in advance if anyone can help - sorry if this is a difficult question!

best wishes, Geddes

+7
python matplotlib wxpython equation
source share
4 answers

Perhaps you could use SymPy's printing capabilities .

+3
source share

You can see how Lybniz does it . Or you can use Lybniz. Just saying it.

+8
source share

I'm not sure if you want your students to build this build tool in python or you want to create a tool yourself so that they can use it, for example, to visualize changes in the behavior of functions as input are varied. If the latter, then it may not matter what language the tool is implemented in, so I mentioned one application that, in my opinion, is ideal for your brief description.

As for plotting, I would ideally want to display the equation that the user enters [eg y = (x ^ 2) / 3] in a well-formatted style - perfectly updated in real time when the user enters their expression.

A free application called Grapher . “It comes bundled with Mac OS X (10.4 and higher). The fact that this is only a Mac may be a deal break, but I would like to mention this if your students use a Mac in a computer lab, like many school students classes. (Note: not to be confused with “AP Grapher” is also a Mac app, but it's a wireless access point finder or something like that.)

Basic set of functions: fully interactive, enter the equation (intuitive - uses a subset for keyword bindings) to create fair complex equations from calculus, linear algebra, statistics, differential equations, etc. After entering, along with a number of values, the equation is beautifully plotted on the graph. Grapher has both 2D and 3D mode. Here is a screenshot of the main window of the Grapher application showing an equation built in 3D.

Is there a version of Windows? I heard rumors that one of them was coming out, but I could not find the final information about this from a few quick web searches.

+2
source share

I don’t know if he will do what you want ... But it might be worth a look at Numpy / Scipy / Matplotlib .

0
source share

All Articles