how i save final Newton Raphson iteration value to use in another equation
조회 수: 2 (최근 30일)
이전 댓글 표시
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
댓글 수: 0
답변 (1개)
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!
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!