先写成实对称型,再求特征值和特征向量,再正交化、法化:
F=[1 3 -2 0; 3 5 0 -2;-2 0 4 -4;0 -2 -4 -1]
P= 0.1001 -0.8491 -0.2802 -0.4364
0.1644 0.4585 0.0287 -0.8729
0.4771 -0.2242 0.8498 -0.0000
0.8575 0.1360 -0.4456 0.2182
D= -3.6088 0 0 0
0 -1.1482 0 0
0 0 6.7571 0
0 0 0 7.0000