Home > K25104 > NonlinearSystems > Newton_Raphson_script_2.m

Newton_Raphson_script_2

PURPOSE ^

Usage example for Newton_Raphson

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Usage example for Newton_Raphson
 related to Exercise 4.7

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % Usage example for Newton_Raphson
0002 % related to Exercise 4.7
0003 
0004 pt = 2;
0005 K = 1;
0006 syms x;
0007 f = x/(1-x) * sqrt(2*pt/(2+x)) - K;
0008 initial = 0.7;
0009 tol = 1e-6;
0010 max = 100;
0011 [ x,k ] = Newton_Raphson( f,initial,tol,max )

Generated on Mon 18-Jan-2016 10:25:49 by m2html © 2005