Secant and tangent: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 80: Line 80:


         var g = function(x) { return (x<=0)?0:1; };
         var g = function(x) { return (x<=0)?0:1; };
         graph = board.createElement('curve', ['x', f, 'x', -10, 10], {curveType:'graph'});
         graph = board.createElement('curve', ['x', g, 'x', -10, 10], {curveType:'graph'});


         qg = board.createElement('glider', [0,0,graph], {style:6});
         qg = board.createElement('glider', [0,0,graph], {style:6});

Revision as of 13:44, 16 January 2009