NTNUJAVA Virtual Physics Laboratory
Enjoy the fun of physics with simulations!
Backup site http://enjoy.phy.ntnu.edu.tw/ntnujava/

Easy Java Simulations (2001- ) => misc => Topic started by: Fu-Kwun Hwang on December 19, 2011, 09:24:54 pm



Title: Let user enter Mathematics function and variable ,then evaluate it's value
Post by: Fu-Kwun Hwang on December 19, 2011, 09:24:54 pm
This is an examples to show how to use Function view element and evaluate user's function.

User can modify function F(x) and change value of x, the simulation will evaluate F(x)
e.g. x=1, F(x)=2*x+1=3
If you change F(x)=2*x*x+2*x+1 it will be evaluated to be 5.