幂法求矩阵最大特征值

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

幂法求矩阵最大特征值

摘要

在物理、力学和工程技术中的很多问题在数学上都归结为求矩阵特征值的问题,而在某些工程、物理问题中,通常只需要求出矩阵的最大的特征值(即主特征值)和相应的特征向量,对于解这种特征值问题,运用幂法则可以有效的解决这个问题。

幂法是一种计算实矩阵A的最大特征值的一种迭代法,它最大的优点是方法简单。对于稀疏矩阵较合适,但有时收敛速度很慢。

用java来编写算法。这个程序主要分成了三个大部分:第一部分为将矩阵转化为线性方程组;第二部分为求特征向量的极大值;第三部分为求幂法函数块。其基本流程为幂法函数块通过调用将矩阵转化为线性方程组的方法,再经过一系列的验证和迭代得到结果。

关键词:幂法;矩阵最大特征值;j ava;迭代

POWER METHOD TO CALCULATE THE MAXIMUM

EIGENV ALUE MATRIX

ABSTRACT

In physics, mechanics and engineering technology of a lot of problems in math boil down to matrix eigenvalue problem, and in some engineering, physical problems, usually only the largest eigenvalue of the matrix (i.e., the main characteristics of the value) and the corresponding eigenvectors, the eigenvalue problem for solution, using the power law can effectively solve the problem.

Power method is A kind of computing the largest eigenvalue of real matrix A of an iterative method, its biggest advantage is simple.For sparse matrix is right, but sometimes very slow convergence speed.

Using Java to write algorithms.This program is mainly divided into three most: the first part for matrix can be converted to linear equations;The second part is the eigenvector of the maximum;The third part is the exponentiation method of function block.Its basic process as a power law function block by calling the method of matrix can be converted to linear equations, then after a series of validation and iteration to get the results.

Key words: Power method; Matrix eigenvalue; Java; The iteration

目录

1幂法 (1)

1.1 幂法基本思想 (1)

1.2规范化 (2)

2概要设计 (3)

2.1 设计背景………………..…………………………………………………………. .3

2.2 运行流程 (3)

2.3运行环境 (3)

3 程序详细设计 (4)

3.1 第一部分:矩阵转化为线性方程组……..………………………………………. .4

3.2 第二部分:特征向量的极大值 (4)

3.3 第三部分:求幂法函数块 (5)

4 运行过程及结果 (6)

4.1 运行过程.........................................................………………………………………. .6

4.2 运行结果 (6)

4.3 结果分析 (6)

5 心得体会 (7)

参考文献 (8)

附录:源程序 (9)

1 幂法

设A n 有n 个线性相关的特征向量v 1,v 2,…,v n ,对应的特征值λ1,λ2,…,λn ,满足

|λ1| > |λ2| ≥ …≥ |λn |

1.1 基本思想

因为{v 1,v 2,…,v n }为C n

的一组基,所以任给x (0)

≠ 0,∑==n

i i i v a x 1

)

0( —— 线性表示

所以有

])([)(2

1

1111

1

1

)

0(∑∑∑∑====+====n

i i i k

i k

n

i k k i i n

i i

k i n i i i k

k

v a v a v a v A a v a A x

A λλλλ

若a 1 ≠ 0,则因

11

<λλi

知,当k 充分大时 A (k )x (0) ≈ λ1k a 1v 1 = cv 1 属λ1的特征向量,另一方面,记max(x ) = x i ,其中|x i | = ||x ||∞,则当k 充分大时,

111111*********)0(1)0()

max()max()max()max()max()max(λλλλλ==≈---v a v a v a v a x A x A k k

k k k k

若a 1 = 0,则因舍入误差的影响,会有某次迭代向量在v 1方向上的分量不为0,迭代下去可求得λ1及对应特征向量的近似值。

1.2 规范化

在实际计算中,若|λ1| > 1则|λ1k a 1| →∞,若|λ1| < 1则| λ1k a 1| → 0都将停机。 须采用“规范化”的方法

⎪⎩⎪⎨⎧==

+)()1()()()()max(k k k k k Ay x

x x y , k = 0,1,2,…

相关文档
最新文档