Help Solving a Non-Linear system using Newton-Raphson Solver
显示 更早的评论
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 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Newton-Raphson Method 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!