Filter löschen
Filter löschen

output iteration for Newton-Raphson

1 Ansicht (letzte 30 Tage)
Alice-Gabriela Stratula
Alice-Gabriela Stratula am 12 Nov. 2020
Beantwortet: Monisha Nalluru am 18 Nov. 2020
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 Kommentar
Geoff Hayes
Geoff Hayes am 13 Nov. 2020
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.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Monisha Nalluru
Monisha Nalluru am 18 Nov. 2020
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

Community Treasure Hunt

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

Start Hunting!

Translated by