Riemann sum III: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
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); }]); | ||
</jsxgraph> | </jsxgraph> |
Revision as of 15:30, 2 February 2010
Appromximate the integral of [math]\displaystyle{ f: R\to R, x\mapsto x^2 }[/math]
The underlying JavaScript code
<jsxgraph width="800" height="400" box="box">
</jsxgraph>