Newton's root finding method: Difference between revisions

From JSXGraph Wiki
(New page: <jsxgraph width="600" height="500"> var i; var board = JXG.JSXGraph.initBoard('jxgbox', {originX: 300, originY: 200, unitX: 40, unitY: 40, axis:true}); var ax = board.create('axis', [[0,0]...)
 
No edit summary
Line 1: Line 1:
<html>
<table width="300" border="0" cellpadding="0" cellspacing="0">
x<sub>o</sub> is the start value. Drag it.
<p></p>
You may change the function term here:
<br>
<td><nobr>f(x) = </nobr></td>
<td>
<form>
<input style="border:none; background-color:#efefef;padding:5px;margin-left:2px;" type="text" onchange="newGraph(this.value);" value="1-2/(x*x)" size="40"/>
</form>
</td>
<tr><td>&nbsp;</td></tr>
<script type="text/javascript">
    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>
</table>
</html>
<jsxgraph width="600" height="500">
<jsxgraph width="600" height="500">
var i;
var i;
Line 32: Line 52:
}
}
</jsxgraph>
</jsxgraph>
<html>
<table width="300" border="0" cellpadding="0" cellspacing="0">
x<sub>o</sub> is the start value. Drag it.
<p></p>
You may change the function term here:
<br>
<td><nobr>f(x) = </nobr></td>
<td>
<form>
<input style="border:none; background-color:#efefef;padding:5px;margin-left:2px;" type="text" onchange="newGraph(this.value);" value="1-2/(x*x)" size="40"/>
</form>
</td>
<tr><td>&nbsp;</td></tr>
<script type="text/javascript">
    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>
</table>
</html>

Revision as of 11:05, 3 February 2010

xo is the start value. Drag it.

You may change the function term here:
f(x) =