Differentiability: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 16: | Line 16: | ||
p[3] = board.create('point', [6, 3], {size:2, color:'blue'}); | p[3] = board.create('point', [6, 3], {size:2, color:'blue'}); | ||
var pol = JXG.Math.Numerics.lagrangePolynomial(p); | var pol = JXG.Math.Numerics.lagrangePolynomial(p); | ||
var graph = board.create('functiongraph', [pol, -10, 10]); | var graph = board.create('functiongraph', [pol, -10, 10], {name:"f", withLabel: true}); | ||
var x0 = board.create('glider', [1, 0, board.defaultAxes.x], {name: 'x_0', size:4}); | var x0 = board.create('glider', [1, 0, board.defaultAxes.x], {name: 'x_0', size:4}); | ||
Line 27: | Line 27: | ||
function() { return x.X(); }, | function() { return x.X(); }, | ||
function() { return (fx.Y()-fx0.Y())/(fx.X()-fx0.X() + 0.0000001); }], | function() { return (fx.Y()-fx0.Y())/(fx.X()-fx0.X() + 0.0000001); }], | ||
{ size: 1, color: 'black', fixed: true, trace: true}); | { size: 1, name: 'f_1', color: 'black', fixed: true, trace: true}); | ||
var txt = board.create('text', [2, 7, function() { | var txt = board.create('text', [2, 7, function() { | ||
Line 37: | Line 37: | ||
}]); | }]); | ||
board.create('functiongraph',[JXG.Math.Numerics.D(pol)]); | board.create('functiongraph',[JXG.Math.Numerics.D(pol)], {dash: 2, name:"f'", withLabel: true}); | ||
</jsxgraph> | </jsxgraph> | ||
Revision as of 18:03, 21 January 2019