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

Answers (1)

Matt Fig
Matt Fig on 30 Mar 2011

0 votes

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

2 Comments

Catherine
Catherine on 30 Mar 2011
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?
Matt Fig
Matt Fig on 30 Mar 2011
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.

Sign in to comment.

Categories

Asked:

on 30 Mar 2011

Community Treasure Hunt

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

Start Hunting!