Home > K25104 > LinearSystems > Jacobi_script.m

Jacobi_script

PURPOSE ^

Usage example for Jacobi

SYNOPSIS ^

This is a script file.

DESCRIPTION ^

 Usage example for Jacobi
 related to Exercise 2.29

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % Usage example for Jacobi
0002 % related to Exercise 2.29
0003 
0004 A = [2 sqrt(3)/2 1/2;
0005     sqrt(3)/2 2 sqrt(3)/2;
0006     1/2 sqrt(3)/2 2];
0007 b = [sqrt(3);
0008     5/3;
0009     sqrt(3)];
0010 x0 = zeros(3,1);
0011 w = 8/9;
0012 imax = 100;
0013 
0014 [ x,k,H,E ] = Jacobi( A,b,x0,w,imax )

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