Riemann sum III: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 26: | Line 26: | ||
{fillColor:'#ffff00', fillOpacity:0.3}); | {fillColor:'#ffff00', fillOpacity:0.3}); | ||
brd. | brd.create('text', | ||
[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 15:28, 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>