# Difference between revisions of "Extended mean value theorem"

From JSXGraph Wiki

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

Line 9: | Line 9: | ||

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

− | var | + | var fg = board.create('curve', JXG.Math.Numerics.Neville(p),{strokeWidth:5,strokeOpacity:0.5}); |

− | + | var graph = board.create('curve', [fg]); | |

− | var graph = board.create(' | + | /* |

− | |||

var g = function(x) { | var g = function(x) { | ||

return JXG.Math.Numerics.D(f)(x)-(p[1].Y()-p[0].Y())/(p[1].X()-p[0].X()); | return JXG.Math.Numerics.D(f)(x)-(p[1].Y()-p[0].Y())/(p[1].X()-p[0].X()); | ||

Line 23: | Line 22: | ||

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> |