Antiderivative: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<jsxgraph width="800" height="400" box="box"> | <jsxgraph width="800" height="400" box="box"> | ||
var brd = JXG.JSXGraph.initBoard('box', {boundingbox:[-3, | var brd = JXG.JSXGraph.initBoard('box', {boundingbox:[-3,10,3,-3],axis:true}); | ||
var p = []; | var p = []; | ||
p.push(brd.create('point',[-2,(Math.random()-0.2)*5],{name:''})); | p.push(brd.create('point',[-2,(Math.random()-0.2)*5],{name:''})); | ||
Line 12: | Line 12: | ||
var int = brd.create('integral',[[function(){return p[0].X();},function(){return s.X();}],plot],{}); | var int = brd.create('integral',[[function(){return p[0].X();},function(){return s.X();}],plot],{}); | ||
var F = brd.create('point',[function(){return s.X();}, function(){return brd.I([p[0].X(),s.X()],f);}],{name:'F'}); | var F = brd.create('point',[function(){return s.X();}, function(){return brd.I([p[0].X(),s.X()],f);}],{trace:true,name:'F',fillColor:'#0000aa',strokeColor:'#0000aa',face:'[]'}); | ||
</jsxgraph> | </jsxgraph> | ||