# 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 28: | Line 28: | ||

</html> | </html> | ||

<jsxgraph width="600" height="500"> | <jsxgraph width="600" height="500"> | ||

+ | newGraph(document.getElementById('graphterm').value) | ||

+ | |||

var i; | var i; | ||

var board = JXG.JSXGraph.initBoard('jxgbox', {originX: 300, originY: 200, unitX: 40, unitY: 40, axis:true}); | var board = JXG.JSXGraph.initBoard('jxgbox', {originX: 300, originY: 200, unitX: 40, unitY: 40, axis:true}); | ||

Line 35: | Line 37: | ||

var x = board.create('glider',[s,0,ax], {name: 'x_{0}', strokeColor: 'magenta', fillColor: 'yellow'}); | var x = board.create('glider',[s,0,ax], {name: 'x_{0}', strokeColor: 'magenta', fillColor: 'yellow'}); | ||

− | |||

newton(x,steps); | newton(x,steps); | ||

function xval(board) { | function xval(board) { |

## Revision as of 15:08, 3 February 2010

x

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