# Difference between revisions of "Newton's root finding method"

From JSXGraph Wiki

Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||

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 13:07, 3 February 2010

x

_{o}is the start value. Drag it. You may change the function term here: