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