var c1 = board.create('functiongraph', [function (t) { return t*t*t; }]);
var i1 = board.create('integral', [[x1,x2], c1]);--
You received this message because you are subscribed to the Google Groups "JSXGraph" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jsxgraph+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
i have solved the 3x, 2x , 9x,etc problems
Depending on the application, the use of eval() may not be the most secure way to convert a function term into a JavaScript function. JSXGraph comes with its own parser JessieCode (see https://github.com/jsxgraph/JessieCode). JessieCode reads Math synatx, i.e. x^2 is converted to x*x, …
Here is your example realized with JessieCode:
var fx = $("#fx").val();
var f = board.jc.snippet(fx, true, 'x', true);
var c1 = board.create('functiongraph', [f]);
Best wishes,
Alfred
This is probably an encoding problem. If possible, try enforcing UTF-8 encoding on your websites:
<meta http-equiv="content-type" content="text/html;charset=utf-8">
Best wishes,
Alfred