Change Equation of a Graph

From JSXGraph Wiki
Jump to navigationJump to search

This example shows how you can change the equation of a graph without creating the whole construction again. Dependend elements are updated automatically.


The doIt() function is only responsible for updating the graph. All other dependend objects are self-updating, especially the object p2 which depends on the derivative of function f. This is all done by anonymous functions of JavaScript.