Code covered by the BSD License  

Highlights from
Newton-Raphson Method for Non-linear System of 3 variables

5.0

5.0 | 2 ratings Rate this file 14 Downloads (last 30 days) File Size: 2.15 KB File ID: #27496

Newton-Raphson Method for Non-linear System of 3 variables

by

 

Newton Method to solve non-linear (also linear) systems of 3 variables.Very amicable

| Watch this File

File Information
Description

You can solve non-linear systems of 3 variables. Only write "newtonv1" on the command window. Then write the 3 equations, the number of iterations y the precision tolerance. The partial derivatives for the gradients are calculated by the program

Required Products Symbolic Math Toolbox
MATLAB release MATLAB 6.1 (R12.1)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (3)
05 Aug 2013 bosko

i keep getting this message.
!Error using diff
Difference order N must be a positive integer scalar.
Error in newton3v1 (line 35)
gradf1 = [diff(f1name,'x') diff(f1name,'y') diff(f1name,'z')];!

please help

13 Oct 2011 Emre

ok, i've found the problem, that was silly of me. i am getting a warning now, it says
"Warning: The method char/diff will be removed in a future release. Use sym/diff instead. For example diff(sym('x^2')).
After removal diff('x^2') will return diff(double('x^2')).
> In char.diff at 10
In Untitled at 34"
how can i get rid of this warning. Thanks

13 Oct 2011 Emre

Thanks for the code but i am getting this error please help me.

??? Error using ==> eval
Undefined function or variable 'e'.

Error in ==> Untitled at 62
fw3 = eval(f3name);

Contact us