2012/3/27 "Detlef Günther" <[email protected]>:
> Hello,
>
> it would be nice to have an interpreter for mathematical expressions so that 
> functions may be defined at runtime.
>
> Example for f(x):
>
>  ExpInter ei = new ExpInter();
>  ei.setFunction("ln(3*sin(2*x)+3)");
>  // Plot the function:
>  for (double x=0.0;x<3.0;x+=0.1) {
>    y = ei(x);
>    // ... do something useful with x,y
>  }
>

Seems completely out of scope for Math to me.

Besides, there are already scripting languages such as Commons JEXL
and BeanShell.
These can call just about any method you want, and BeanShell allows
one to define functions.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to