Difference between revisions of "Riemann sum III"

From JSXGraph Wiki
Jump to navigationJump to search
Line 2: Line 2:
 
<math>f: R\to R, x\mapsto x^2 </math>
 
<math>f: R\to R, x\mapsto x^2 </math>
 
<html>
 
<html>
<form>Riemann sum type: <select id="sumtype" >
+
<form>Riemann sum type: <select id="sumtype" onChange="brd.update()">
 
<option value='left' selected> left
 
<option value='left' selected> left
 
<option value='right'> right
 
<option value='right'> right
Line 35: Line 35:
 
<source lang="xml">
 
<source lang="xml">
 
<jsxgraph width="800" height="400" box="box">
 
<jsxgraph width="800" height="400" box="box">
 +
</source>
 +
<source lang="javascript">
 +
</source>
 +
<source lang="xml">
 
</jsxgraph>
 
</jsxgraph>
 
</source>
 
</source>

Revision as of 17:29, 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>