Secant and tangent: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 41: Line 41:
       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();},
e = board.createElement('point', [function(){ return q.X()-q2.X();},
       function(){ return q.Y()-q2.Y();}], {style:7});
       function(){ return (q.Y()-q2.Y())/(q.X()-q2.X());}], {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:43, 16 January 2009