Help Solving a Non-Linear system using Newton-Raphson Solver
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
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?
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!