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!