Difference between revisions of "Extended mean value theorem"

From JSXGraph Wiki
Jump to: navigation, search
Line 21: Line 21:
  
 
var quot = function(t) {
 
var quot = function(t) {
     return df(t) / dg(t) - (p[3].Y() - p[0].Y()) / (p[3].X() - p[0].X());
+
     return df(t) / dg(t) - (p[3].X() - p[0].X()) / (p[3].Y() - p[0].Y());
 
};
 
};
 
var r = board.create('glider', [
 
var r = board.create('glider', [
                     function() { console.log(fg[3](), fg[2]); return fg[0](JXG.Math.Numerics.root(quot, [fg[3](), fg[2]])); },
+
                     function() { 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 17:22, 29 January 2019

The underlying JavaScript code