Help Solving a Non-Linear system using Newton-Raphson Solver

조회 수: 4 (최근 30일)
Ryan 2014년 10월 19일
댓글: Geoff Hayes 2014년 10월 19일
I need help solving the following problem...
A Non-Linear system of equations is given by,
(x1 ^ 3) + (x2) = 1
(x1) + (x2) = 0
Write a MATLAB function that uses the Newton-Raphson method to solve a nonlinear system of equations. The function should accept a function handle for a the nonlinear system, a function handle for the Jacobian of the nonlinear system, a stopping tolerance, and maximum number of iterations. The function should return the solution and the error estimate for each iteration. You may use the “\” command to solve the linear system. Use the following as the stopping criterion:
F(xn) / F(x0) > y
Where y is the stopping tolerance
Write a script that uses the Newton-Raphson function to solve the non-linear system above using initial guess (1,0).
Thank you so much!
댓글 수: 1이전 댓글 -1개 표시이전 댓글 -1개 숨기기
Geoff Hayes 2014년 10월 19일
Ryan - what have you tried so far? It seems that the homework question is describing how you should set up your function (with input parameters, return value), stopping criteria (either the max number of iterations has been reached or the stopping tolerance), etc. Where are you getting stuck?

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

카테고리

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