Extended mean value theorem: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 24: Line 24:
     return df(t) / dg(t) - (p[3].X() - p[0].X()) / (p[3].Y() - p[0].Y());
     return df(t) / dg(t) - (p[3].X() - p[0].X()) / (p[3].Y() - p[0].Y());
};
};
console.log(df(-0.9), dg(-0.9), quot(-0.9), (p[3].X() - p[0].X()) / (p[3].Y() - p[0].Y()));


var r = board.create('glider', [
var r = board.create('glider', [
                     function() {  
                     function() {  
var t0 = JXG.Math.Numerics.root(quot, [fg[3](), fg[2]]);
var t0 = JXG.Math.Numerics.root(quot, [fg[3](), fg[2]]);
console.log(t0, quot(t0), fg[0](t0), fg[1](t0));
console.log(t0, quot(t0), fg[0](t0), fg[1](t0));
return fg[0](JXG.Math.Numerics.root(quot, [fg[3](), fg[2]])); },
return fg[0](JXG.Math.Numerics.root(quot, [fg[3](), fg[2]])); },
                     function() { return fg[1](JXG.Math.Numerics.root(quot, [fg[3](), fg[2]])); },
                     function() { return fg[1](JXG.Math.Numerics.root(quot, [fg[3](), fg[2]])); },
                     graph], {name:'',size:4,fixed:true});
                     graph], {name:'',size:4,fixed:true});

Revision as of 15:41, 29 January 2019

The underlying JavaScript code