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

Catherine
Catherine 2011년 3월 30일
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 2011년 3월 30일
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