Secant and tangent: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 40: Line 40:
q2 = board.createElement('point', [function(){ return q.X()+Math.max(s.X(),0.01);},
q2 = board.createElement('point', [function(){ return q.X()+Math.max(s.X(),0.01);},
       function(){ return polynomial(q.X()+Math.max(s.X(),0.01));}], {style:7});
       function(){ return polynomial(q.X()+Math.max(s.X(),0.01));}], {style:7});
 
e = board.createElement('point', [function(){ return q.X()-q2.X();},
      function(){ return q.Y()-q2.Y();}], {style:7});
line = board.createElement('line',[q,q2],{strokeColor:'#ff0000'});
line = board.createElement('line',[q,q2],{strokeColor:'#ff0000'});
board.unsuspendUpdate();
board.unsuspendUpdate();

Revision as of 10:42, 16 January 2009