File Exchange

## Newton-Raphson Method for a nonlinear System of 3 variables

version 1.0.2 (1.37 KB) by
The function returns the solution of three equations in three variables using the Newton-Raphson method.

Updated 19 May 2019

The function returns the solution of three equations in three variables using the Newton-Raphson method. The inputs are symbolic functions, initial guesses and number of iterations.

Here's an example;
syms x y z
u=3*x-cos(y*z)-1.5; v=4*x-625*(y^2)+2*z-1; w=20*z+exp(-x*y)+9;
xo=1;yo=2;zo=3;n=20,
Newton_Raphson(u,v,w,xo,yo,zo,n)

### Cite As

Ibrahim Abouemira (2021). Newton-Raphson Method for a nonlinear System of 3 variables (https://www.mathworks.com/matlabcentral/fileexchange/71593-newton-raphson-method-for-a-nonlinear-system-of-3-variables), MATLAB Central File Exchange. Retrieved .

how do i manipulate this code to be used for 4 equations?

Mariana

Good one. Simple. Using predefined Matlab functions.

##### MATLAB Release Compatibility
Created with R2019a
Compatible with any release
##### Platform Compatibility
Windows macOS Linux