Difference between revisions of "Differentiability"
From JSXGraph Wiki
Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||
Line 14: | Line 14: | ||
p[1] = board.create('point', [-0.5,3], {size:2, color:'blue'}); | p[1] = board.create('point', [-0.5,3], {size:2, color:'blue'}); | ||
p[2] = board.create('point', [2,0.5], {size:2, color:'blue'}); | p[2] = board.create('point', [2,0.5], {size:2, color:'blue'}); | ||
− | p[3] = board.create('point', [6, | + | 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]); | ||
Line 24: | Line 24: | ||
var line = board.create('line',[fx0, fx],{strokeColor:'#ff0000',dash:2}); | var line = board.create('line',[fx0, fx],{strokeColor:'#ff0000',dash:2}); | ||
− | var txt = board.create('text', [2, | + | var txt = board.create('text', [2, 7, function() { |
return '\\[ \\frac{' + | return '\\[ \\frac{' + | ||
− | fx.Y().toFixed(2) + '-' + fx0.Y().toFixed(2) + | + | fx.Y().toFixed(2) + '-(' + fx0.Y().toFixed(2) + |
− | '}{' + | + | )'}{' + |
− | fx.X().toFixed(2) + '-' + fx0.X().toFixed(2) + | + | fx.X().toFixed(2) + '-(' + fx0.X().toFixed(2) + |
− | '} \\]'; | + | ')} \\]'; |
}]); | }]); | ||
Revision as of 19:50, 21 January 2019