Secant and tangent: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) 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()+Math.max(s.X(),0. | function(){ return polynomial(q.X()+Math.max(s.X(),0.01));}], {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