Difference between revisions of "Riemann sum III"

From JSXGraph Wiki
Jump to navigationJump to search
Line 27: Line 27:
  
 
brd.create('text',
 
brd.create('text',
       [1,35,function(){ return 'Sum='+(brd.riemannsum(f,s.Value(),document.getElementById('sumtype').value,a.Value(),b.Value())).toFixed(4); }],
+
       [1,35,function(){ return 'Sum='+(brd.riemannsum(f,s.Value(),document.getElementById('sumtype').value,a.Value(),b.Value())).toFixed(4); }]);
      {fontSize:40});
 
  
 
</jsxgraph>
 
</jsxgraph>

Revision as of 17:30, 2 February 2010

Appromximate the integral of [math]f: R\to R, x\mapsto x^2 [/math]

Riemann sum type:

The underlying JavaScript code

<jsxgraph width="800" height="400" box="box">
</jsxgraph>