필터 지우기
필터 지우기

Newton Raphson’s method

조회 수: 1 (최근 30일)
Aslam Ali
Aslam Ali 2020년 8월 6일
댓글: Aslam Ali 2020년 8월 6일
Write down the Matlab /C ++ routine for Newton Raphson’s method for the following problems
cos(x) + 2 sin(x) + x^2, for initial guess as 0
  댓글 수: 1
Aslam Ali
Aslam Ali 2020년 8월 6일
I can't attempt this question because i didn't understand it please if anyone know the answer and code then kinly share it

댓글을 달려면 로그인하십시오.

답변 (1개)

Alan Stevens
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.
  댓글 수: 1
Aslam Ali
Aslam Ali 2020년 8월 6일
No sir i need full code of this question in c++

댓글을 달려면 로그인하십시오.

카테고리

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