Html View Elements Function
This element lets you write an analytic expression for a function and use it to evaluate the function on given arguments.
The expressions are parsed to make the computations. Check here for the right syntax.
The expressions may contain any number of variables. To make the computation, you need to invoke the element evaluate() function with a Javscript object with all these variables as properties.
For instance, if your function element is called myFunction and the expression it contains is x+y, you can evaluate the function as in:
If your expression contains many parameters (variables which rarely change their value), as in a*x^3+b*x^2+c*x+d, you can save the effort of passing each time the values of the parameters a,b,c,d, by setting:
If you invoke once: