output iteration for Newton-Raphson

조회 수: 1 (최근 30일)
Alice-Gabriela Stratula
Alice-Gabriela Stratula 2020년 11월 12일
답변: Monisha Nalluru 2020년 11월 18일
Hello:)
I have to solve an equation using Newton-Raphson. The problem is requiring that the code should not do more iterations than necessary.Also, the code must output the result of each iteration until the required solution.
took for example sin(x)=cos(2x) , starting point x(0)=1.
I'm thinking that I have to use a while loop, but I dont know what variable is the solution(for example if its x, x(k), the function).
Please give me some hints such that output is as required.
  댓글 수: 1
Geoff Hayes
Geoff Hayes 2020년 11월 13일
Alice-Gabriela - what have you tried so far? Please post your code (whether it is working or not) and we'll offer some guidance on how best to continue.

댓글을 달려면 로그인하십시오.

답변 (1개)

Monisha Nalluru
Monisha Nalluru 2020년 11월 18일
In order to continue with Newton - Raphson technique, we need to mention the error tolerance
You can refer the following file exchanges for understanding the implementation part

카테고리

Help CenterFile Exchange에서 Newton-Raphson Method에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by