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 14: | Line 14: | ||
<tr><td> </td></tr> | <tr><td> </td></tr> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
+ | function newGraph(v) { | ||
+ | eval("term = function(x){ return "+v+";}"); | ||
+ | graph = function(x) { return term(x); }; | ||
+ | g.Y = function(x){ return term(x); }; | ||
+ | g.updateCurve(); | ||
+ | board.update(); | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
// Initial function term | // Initial function term | ||
//var term = function(x) { return x*x; }; | //var term = function(x) { return x*x; }; | ||
Line 56: | Line 66: | ||
} | } | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</jsxgraph> | </jsxgraph> |
Revision as of 15:13, 3 February 2010
xo is the start value. Drag it. You may change the function term here: