Home > K25104 > NonlinearSystems > inv_quad_it_script_2.m

inv_quad_it_script_2

PURPOSE ^

Usage example for inv_quad_it

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Usage example for inv_quad_it
 related to Exercise 4.7

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % Usage example for inv_quad_it
0002 % related to Exercise 4.7
0003 
0004 pt = 2;
0005 K = 1;
0006 f = @(x) x/(1-x) * sqrt(2*pt/(2+x)) - K;
0007 x0 = 0;
0008 x1 = 0.2;
0009 x2 = 0.9;
0010 tol = 1e-6;
0011 max = 100;
0012 [ x,k ] = inv_quad_it( f,x0,x1,x2,tol,max )

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