Riemann integrability: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 12: | Line 12: | ||
var plot = brd.create('functiongraph',[f,-3,3]); | var plot = brd.create('functiongraph',[f,-3,3]); | ||
var os = brd.createElement('riemannsum',[f, | var os = brd.createElement('riemannsum',[f, | ||
function(){ return | function(){ return n.Value();}, 'upper'}, | ||
-3,3], | |||
{fillColor:'#ffff00', fillOpacity:0.3}); | {fillColor:'#ffff00', fillOpacity:0.3}); | ||
/* | |||
brd.createElement('text',[-6,-3,function(){ return 'Sum='+(brd.riemannsum(f,s.Value(),document.getElementById('sumtype').value,a.Value(),b.Value())).toFixed(4); }]); | brd.createElement('text',[-6,-3,function(){ return 'Sum='+(brd.riemannsum(f,s.Value(),document.getElementById('sumtype').value,a.Value(),b.Value())).toFixed(4); }]); | ||
brd.create('text',[3,-3,'`sum_(i=0)^n i^2`']); | brd.create('text',[3,-3,'`sum_(i=0)^n i^2`']); | ||
*/ | */ |