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

From JSXGraph Wiki
Jump to: navigation, search
Line 37: Line 37:
 
function xval(board) {
 
function xval(board) {
 
     for (i = 0; i < steps; i++)
 
     for (i = 0; i < steps; i++)
         document.getElementById('xv' + i).innerHTML = board.round(JXG.GetReferenceFromParameter(board, 'x_{' + i + '}').X(),14);
+
         document.getElementById('xv' + i).innerHTML = board.round(JXG.GetReference(board, 'x_{' + i + '}').X(),14);
 
}
 
}
  

Revision as of 13:07, 3 February 2010

xo is the start value. Drag it.

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