how i save final Newton Raphson iteration value to use in another equation

조회 수: 2 (최근 30일)
Taniya
Taniya 2023년 7월 21일
답변: Aman 2023년 7월 31일
c = (1/n*sum(x^k))^(1/k), this k value is the final iteration value get from previous calculation. now how i save it to use in maintioned equation. n and x are declaired already in newton raphson

답변 (1개)

Aman
Aman 2023년 7월 31일
Hi,
I understand that you have an equation that you want to solve using the Newton-Raphson method but are facing an issue as you are not able to use the variable “k” from the previous iteration.
Without the actual code, it is difficult to suggest some solution upfront, but you can refer to the following documentation, which demonstrates how to implement the Newton-Raphson method.
As discussed in the above solution, “x_old” holds the final value from the previous iteration, so in a similar line of solution, you can also do the same for your equation.
I hope it helps!

카테고리

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