Difference between revisions of "Extended mean value theorem"

From JSXGraph Wiki
Jump to: navigation, search
Line 9: Line 9:
 
p[3] = board.create('point', [3,-2], {size:2});
 
p[3] = board.create('point', [3,-2], {size:2});
  
var f = JXG.Math.Numerics.lagrangePolynomial(p);
+
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('functiongraph', [f,-10, 10]);
+
/*
 
 
 
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>

Revision as of 15:56, 29 January 2019

The underlying JavaScript code