Riemann integrability: Difference between revisions

From JSXGraph Wiki
No edit summary
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,-3,function(){ return 'Diff='+(brd.riemannsum(f,n.Value(),'upper',-3,3)-brd.riemannsum(f,n.Value(),'lower',-3,3)).toFixed(4); }]);
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]]

Revision as of 12:44, 11 May 2010