# Difference between revisions of "Extended mean value theorem"

From JSXGraph Wiki

Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||

Line 5: | Line 5: | ||

board.suspendUpdate(); | board.suspendUpdate(); | ||

p[0] = board.create('point', [-2,-2], {size:2}); | p[0] = board.create('point', [-2,-2], {size:2}); | ||

− | p[1] = board.create('point', [- | + | p[1] = board.create('point', [-1.5, 5], {size:2}); |

p[2] = board.create('point', [1,4], {size:2}); | p[2] = board.create('point', [1,4], {size:2}); | ||

p[3] = board.create('point', [3,-2], {size:2}); | p[3] = board.create('point', [3,-2], {size:2}); | ||

− | var | + | |

− | + | var f = JXG.Math.Numerics.lagrangePolynomial(p); | |

+ | |||

var graph = board.create('functiongraph', [f,-10, 10]); | var graph = board.create('functiongraph', [f,-10, 10]); | ||

Line 22: | Line 23: | ||

board.create('tangent', [r], {strokeColor:'#ff0000'}); | board.create('tangent', [r], {strokeColor:'#ff0000'}); | ||

line = board.create('line',[p[0],p[1]],{strokeColor:'#ff0000',dash:1}); | line = board.create('line',[p[0],p[1]],{strokeColor:'#ff0000',dash:1}); | ||

− | + | ||

board.unsuspendUpdate(); | board.unsuspendUpdate(); | ||

</jsxgraph> | </jsxgraph> |