Riemann integrability: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 15: | Line 15: | ||
var lo = brd.create('riemannsum',[f,function(){ return n.Value();}, 'lower',-3,3],{fillColor:'#ffff00', fillOpacity:0.3}); | var lo = brd.create('riemannsum',[f,function(){ return n.Value();}, 'lower',-3,3],{fillColor:'#ffff00', fillOpacity:0.3}); | ||
brd.createElement('text',[-2,- | brd.createElement('text',[-2,-2,function(){ return 'Diff='+(brd.riemannsum(f,n.Value(),'upper',-3,3)-brd.riemannsum(f,n.Value(),'lower',-3,3)).toFixed(4); }]); | ||
</jsxgraph> | </jsxgraph> | ||
[[Category:Calculus]] | [[Category:Calculus]] | ||
[[Category:Examples]] | [[Category:Examples]] |