Newtons Method Program?

Hello, I need to create a program which uses newton's method (xvn+1v=[f(xvnv)]/[f'(xvnv)]....(i use v to indicate subscripts) to estimate solution of any given equation until they are within .001 of each other. I know i'll need function files for both f and f' as well as a plot of f to get xv1v, as a starting guess, but i dont know what to do from there, any help would be greatly appreciated as i know almost nothing about matlab, thanks

回答(1 个)

Matt Fig
Matt Fig 2011-3-30

0 个投票

From there I would guess you start implementing Newton's method to solve the problem.
Where are you stuck?

2 个评论

I dont understand the program part. If i was given any equation would i just have to work it out by itself, or is it possible to create a program that can work any equation out? Does that make sense?
If you make one M-file for the function and one for its derivative, then the third M-file would be to take these two and apply Newton's method to find a root. So the third M-file should be a general application of Newton's method.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Systems of Nonlinear Equations 的更多信息

提问:

2011-3-30

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by