Difference between revisions of "Riemann integrability"

From JSXGraph Wiki
Jump to navigationJump to search
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 13:44, 11 May 2010