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

1 view (last 30 days)
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

Answers (1)

Aman
Aman on 31 Jul 2023
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!

Community Treasure Hunt

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

Start Hunting!