Secant and tangent: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) 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',trace: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:46, 16 January 2009