I can't attempt this question because i didn't understand it please if anyone know the answer and code then kinly share it
Newton Raphson’s method
2 ビュー (過去 30 日間)
古いコメントを表示
回答 (1 件)
Alan Stevens
2020 年 8 月 6 日
If we set f(x) = cos(x) + 2sin(x) + x^2, then the question is asking for the value of x that makes f(x) = 0. Newton-Raphson is an iterative process that proceeds as follows:
Starting with an intial guess, x1, for x (here you are told to set x1 = 0) find the n+1'th iteration vaue from the n'th iteration value from:
x(n+1) = x(n) - f(x(n))/f`(x(n)) where f`(x) is df/dx. Here: f`(x) = -sin(x) + 2cos(x) + 2x
I hope that helps.
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!