Secant and tangent: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 36: Line 36:
         graph = board.createElement('curve', ['x', polynomial, 'x', -10, 10], {curveType:'graph'});
         graph = board.createElement('curve', ['x', polynomial, 'x', -10, 10], {curveType:'graph'});


        q = board.createElement('glider', [3,3,graph], {style:6});
q = board.createElement('glider', [3,3,graph], {style:6});
 
s = board.createElement('slider', [0,-3,4,0,1,1],{name:' '});
q2 = board.createElement('point', [function(){ return q.X()+s.X();},
      function(){ return polynomial(q.X()+s.X());}], {style:7});
board.unsuspendUpdate();
board.unsuspendUpdate();
</script>
</script>

Revision as of 17:30, 10 January 2009