理学计算物理课件.ppt
《理学计算物理课件.ppt》由会员分享,可在线阅读,更多相关《理学计算物理课件.ppt(102页珍藏版)》请在三一办公上搜索。
1、1,5 Linear equations,5.1 Gauss elimination 5.2 Pivoting5.3 LU factorisation 5.4 The determinant and Inverse of a matrix5.5 Banded matrices and Tridiagonal matrices5.6 Other approaches to solving linear systems,2,In this chapter we deal with basic matrix operations,such as the solution of linear equa
2、tions,calculate the inverse of a matrix,its determinant etc.,3,5.1 Gauss elimination,4,例1 用高斯消元法求解方程组,5,=,-,-,=,-,+,=,+,+,12,6,0,3,1,14,2,8,2,3,2,1,3,2,1,3,2,1,x,x,x,x,x,x,x,x,x,0,0,1,6,matrix operations,7,8,9,10,x1=x2=x3=1.,11,5.2 Pivoting,主元交换法,列主元交换法,行主元交换法,12,5.2.1 Partial pivoting,部分主元交换法,13,行主
3、元交换法,14,例如.求解方程组,15,用高斯顺序消去法求解,16,用主元交换法求解,17,5.2.2 Full pivoting,全主元交换法,18,19,而交换列时解的次序发生改变,20,;,;,;,,,对,;,;,中选绝对值最大者,从,选主元,、第一步消元,j,t,i,l,a,then,a,if,do,n,j,n,i,t,l,a,n,j,i,a,ij,ij,ij,=,=,=,=,=,=,=,=,=,|,|,max,|,|,max,.,1,.,1,;,1,1,|,|,max,.,),.,2,1,(,),1,1,11,21,顺序消元;,;,做,,,,,,,初值,踪数组,因此设跟,而交换列时解
4、的次序发生改变,),3,),(,),1,(,),Z(,.,2,),Z(2,1,),Z(1,),(,t,Z,Z,n,n,i,Z,=,=,=,22,高斯若当(Gauss-Jordan)消元法,23,5.3 LU factorisation,A=LU,24,25,26,27,Doolittle分解,若矩阵A有分解:A=LU,其中L为单位下三角阵,U为上三角阵,则称该分解为Doolittle分解,可以证明,当A的各阶顺序主子式均不为零时,Doolittle分解可以实现并且唯一。,28,A的各阶顺序主子式均不为零,即,29,Doolittle分解,30,Doolittle分解,31,Doolittle分
5、解,32,将矩阵A进行LU分解,33,34,Y1=12Y2=7Y3=-2,x3=2,x2=1,x1=3,35,将矩阵A进行LU分解,36,37,Doolittle分解,38,Ax=w,Ax=BCx=w,By=w,y=Cx,This equation can be calculated in two steps,39,For our four-dimentional example this takes the form,By=w,y=Cx,40,forward substitution,Back substitution,41,例题,42,43,例题,44,所以方程组的解为,。,45,5.4
6、The determinant and Inverse of a matrix,矩阵的行列式和逆矩阵,46,定义矩阵A的行列式,.,1 The determinant of a matrix,=,The basic definition of the determinant of A is,47,1 The determinant of a matrix,48,The basic definition of the determinant of A is,A=LU,49,50,For the sake of simplicity,let us look at a(4x4)matrix A an
7、d a corresponding identity matrix I,The inverse of a matrix is defined by,2 The Inverse of a matrix,51,The inverse is slightly more difficult to obtain from the LU decomposition.It is formally defined as,If we call D for the inverse of B,we can determine the matrix elements of D through the equation
8、,A=BC,2.1 LU decomposition,52,53,which gives the following general algorithm,which is valid for ij.The diagonal is 1 and the upper matrix elements are zero.We solve thisequation column by column(increasing order of j).,54,In a similar way we can define an equationwhich gives us the inverse of the ma
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 理学 计算 物理 课件

链接地址:https://www.31ppt.com/p-2175629.html