官术网_书友最值得收藏!

Eigenvalues and eigenvectors

Ax = b is a linear equation which emerges from static problems. Eigenvalues, on the other hand, are used for dynamic problems. Let's consider A as a matrix with x as a vector; we will now solve the new equation in linear algebra, Ax= λx.

As A multiplies x, the vector x changes its direction. But there are certain vectors in the same direction as Ax-these are known as eigenvectors, for which the following equation holds good:

Ax= λx

In the last equation, vector Ax is lambda times the vector x, and λ is known as eigenvalue. Eigenvalue λ gives the direction of a vector-if it is reversed, or is in the same direction.

Ax= λx also conveys that det(A - λI) = 0, where I is the identity matrix. This determines n eigenvalues.

The eigenvalue problem is defined as follows:

A x = λ x

A x-λ x = 0

A x-λ I x = 0

(A-λ I) x = 0

If x is non-zero, the preceding equation will have a solution only if |A-λ I| = 0. Using this equation, we can find eigenvalues.

val A = DenseMatrix((9.0,0.0,0.0),(0.0,82.0,0.0),(0.0,0.0,25.0)) 
val es = eigSym(A)
val lambda = es.eigenvalues
val evs = es.eigenvectors
println("lambda is : " + lambda)
println("evs is : " + evs)

This last code gives us the following result:

lambda is : DenseVector(9.0, 25.0, 82.0)
evs is : 1.0 0.0 0.0
0.0 0.0 1.0
0.0 1.0 -0.0
主站蜘蛛池模板: 阿克陶县| 安西县| 芮城县| 沙田区| 顺昌县| 淮南市| 永顺县| 新密市| 武城县| 寿宁县| 诸暨市| 庆安县| 肥东县| 沽源县| 拉孜县| 太康县| 马鞍山市| 唐海县| 靖西县| 汤原县| 安康市| 韶关市| 盱眙县| 阳城县| 兰考县| 青海省| 蒙阴县| 渝中区| 米脂县| 阜南县| 广安市| 沙河市| 凭祥市| 曲麻莱县| 高唐县| 平度市| 衡阳市| 财经| 兰西县| 双城市| 正宁县|