Secant and tangent: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 21: | Line 21: | ||
q = board.createElement('glider', [4.5,0,graph], {style:6}); | q = board.createElement('glider', [4.5,0,graph], {style:6}); | ||
s = board.createElement('slider', [[0,-3],[4,-3],[0.001,1,1]]); | s = board.createElement('slider', [[0,-3],[4,-3],[0.001,1,1]]); | ||
q2 = board.createElement('point', [function(){ return q.X()+Math.max(s. | q2 = board.createElement('point', [function(){ return q.X()+Math.max(s.Value(),0.01);}, | ||
function(){ return pol(q.X()+Math.max(s. | function(){ return pol(q.X()+Math.max(s.Value(),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',trace:true}); | function(){ return (q2.Y()-q.Y())/(q2.X()-q.X());}], {style:7,name:'Sekantensteigung',trace:true}); | ||
Line 44: | Line 44: | ||
qf = board.createElement('glider', [0,0,graph], {style:6}); | qf = board.createElement('glider', [0,0,graph], {style:6}); | ||
sf = board.createElement('slider', [[0,-3],[4,-3],[0.001,1,1]]); | sf = board.createElement('slider', [[0,-3],[4,-3],[0.001,1,1]]); | ||
qf2 = board.createElement('point', [function(){ return qf.X()+sf. | qf2 = board.createElement('point', [function(){ return qf.X()+sf.Value();}, | ||
function(){ return f(qf.X()+sf. | function(){ return f(qf.X()+sf.Value());}], {style:7}); | ||
ef = board.createElement('point', [function(){ return qf2.X()-qf.X();}, | ef = board.createElement('point', [function(){ return qf2.X()-qf.X();}, | ||
function(){ return (qf2.Y()-qf.Y())/(qf2.X()-qf.X());}], {style:7,name:'Sekantensteigung',trace:true}); | function(){ return (qf2.Y()-qf.Y())/(qf2.X()-qf.X());}], {style:7,name:'Sekantensteigung',trace:true}); | ||
Line 67: | Line 67: | ||
qg = board.createElement('glider', [0,0,graph], {style:6}); | qg = board.createElement('glider', [0,0,graph], {style:6}); | ||
sg = board.createElement('slider', [[0,-3],[4,-3],[0.001,1,1]]); | sg = board.createElement('slider', [[0,-3],[4,-3],[0.001,1,1]]); | ||
qg2 = board.createElement('point', [function(){ return qg.X()+sg. | qg2 = board.createElement('point', [function(){ return qg.X()+sg.Value();}, | ||
function(){ return g(qg.X()+sg. | function(){ return g(qg.X()+sg.Value());}], {style:7}); | ||
eg = board.createElement('point', [function(){ return qg2.X()-qg.X();}, | eg = board.createElement('point', [function(){ return qg2.X()-qg.X();}, | ||
function(){ return (qg2.Y()-qg.Y())/(qg2.X()-qg.X());}], {style:7,name:'Sekantensteigung',trace:true}); | function(){ return (qg2.Y()-qg.Y())/(qg2.X()-qg.X());}], {style:7,name:'Sekantensteigung',trace:true}); |
Revision as of 13:36, 4 June 2009