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

1 Ansicht (letzte 30 Tage)
Ryan
Ryan am 19 Okt. 2014
Kommentiert: Geoff Hayes am 19 Okt. 2014
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 Kommentar
Geoff Hayes
Geoff Hayes am 19 Okt. 2014
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?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by