Secant and tangent: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 39: Line 39:
s = board.createElement('slider', [0,-3,4,0.001,1,1],{name:' '});
s = board.createElement('slider', [0,-3,4,0.001,1,1],{name:' '});
q2 = board.createElement('point', [function(){ return q.X()+s.X();},
q2 = board.createElement('point', [function(){ return q.X()+s.X();},
       function(){ return polynomial(q.X()+s.X());}], {style:7});
       function(){ return polynomial(q.X()+Math.max(s.X(),0.0001));}], {style:7});


line = board.createElement('line',[q,q2],{strokeColor:'#ff0000'});
line = board.createElement('line',[q,q2],{strokeColor:'#ff0000'});

Revision as of 13:35, 12 January 2009