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

From JSXGraph Wiki

A WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||

Line 16: | Line 16: | ||

// Initial function term | // Initial function term | ||

var term; | var term; | ||

− | //function term(x) { return x*x; } | + | var graph; |

− | // Recursion depth | + | //function term(x) { return x*x; } |

+ | // Recursion depth | ||

var steps = 11; | var steps = 11; | ||

// Start value | // Start value | ||

Line 56: | Line 57: | ||

} | } | ||

function newGraph(v) { | function newGraph(v) { | ||

− | eval("function | + | eval("term = function(x){ return "+v+";}"); |

graph = function(x) { return term(x); } | graph = function(x) { return term(x); } | ||

g.Y = function(x){ return term(x); }; | g.Y = function(x){ return term(x); }; |

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

x

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