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

From JSXGraph Wiki
Jump to: navigation, search
Line 31: Line 31:
 
<jsxgraph width="600" height="500">
 
<jsxgraph width="600" height="500">
 
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', {boundingbox:[-5,8,5,-4], axis:true});
 
var ax = board.create('axis', [[0,0], [1,0]], {strokeColor: 'black'});
 
var ax = board.create('axis', [[0,0], [1,0]], {strokeColor: 'black'});
 
var ay = board.create('axis', [[0,0], [0,1]], {strokeColor: 'black'});
 
var ay = board.create('axis', [[0,0], [0,1]], {strokeColor: 'black'});

Revision as of 16:12, 3 February 2010

xo is the start value. Drag it.

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