Newton's root finding method: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 13: | Line 13: | ||
<tr><td> </td></tr> | <tr><td> </td></tr> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
// Initial function term | |||
function term(x) { return 1-2/(x*x); } | |||
// Recursion depth | |||
var steps = 11; | |||
// Start value | |||
var s = 3; | |||
for (i = 0; i < steps; i++) { | |||
document.write('<tr><td><nobr>x<sub>' + i + '</sub> = </nobr></td><td><font id="xv' + i + '"></font></td></tr>'); | |||
} | |||
</script> | </script> | ||
</table> | </table> |
Revision as of 11:07, 3 February 2010
xo is the start value. Drag it. You may change the function term here: