Secant and tangent: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 12: | Line 12: | ||
var p = []; | var p = []; | ||
p[0] = board.createElement('point', [-1, | p[0] = board.createElement('point', [-1,0], {style:4}); | ||
p[1] = board.createElement('point', [-0.5,1], {style:4}); | p[1] = board.createElement('point', [-0.5,1], {style:4}); | ||
p[2] = board.createElement('point', [2, | p[2] = board.createElement('point', [2,0.5], {style:4}); | ||
p[3] = board.createElement('point', [5,3], {style:4}); | p[3] = board.createElement('point', [5,3], {style:4}); | ||
var polynomial = function(x) { | var polynomial = function(x) { | ||
Line 37: | Line 37: | ||
q = board.createElement('glider', [3,3,graph], {style:6}); | q = board.createElement('glider', [3,3,graph], {style:6}); | ||
s = board.createElement('slider', [0,-3,4,0,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()+s.X());}], {style:7}); |
Revision as of 17:33, 10 January 2009