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 q2.X()-q.X();},
e = board.createElement('point', [function(){ return q2.X()-q.X();},
       function(){ return (q2.Y()-q.Y())/(q2.X()-q.X());}], {style:7,name:'Sekantensteigung'});
       function(){ return (q2.Y()-q.Y())/(q2.X()-q.X());}], {style:7,name:'Sekantensteigung',traced:true});
line = board.createElement('line',[q,q2],{strokeColor:'#ff0000'});
line = board.createElement('line',[q,q2],{strokeColor:'#ff0000'});
board.unsuspendUpdate();
board.unsuspendUpdate();

Revision as of 10:45, 16 January 2009