How To Make A Dynamic Function To Draw Integral Graph From User Input With Jsxgraph?
I have a problem to make a dynamic graph from this library http://jsxgraph.uni-bayreuth.de/docs/symbols/Integral.html == this will make f(x) = x^3 var c1 = board.create('function
Solution 1:
JSXGraph comes with its own parser JessieCode (see https://github.com/jsxgraph/JessieCode) which does exactly this. JessieCode reads Math syntax, i.e. x^2 is converted to x*x, and hands over an object which can be plotted by JSXGraph.
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]);
Post a Comment for "How To Make A Dynamic Function To Draw Integral Graph From User Input With Jsxgraph?"