如何用C编程语言计算特征值和特征向量? [英] How to compute eigenvalues and eigenvectors in C programming language?
问题描述
大家好,
我想写一个C程序来计算特征值和特征向量。
但矩阵是一个复杂的矩阵,它具有所有复杂性数字。喜欢
这个:
5.8751 5.8774 + 1.5423i 2.0818 + 2.8963i 1.8692 +
1.9634i
5.8774 - 1.5423i 6.8258 2.6390 + 2.8255i 2.2955 +
1.9349i
2.0818 - 2.8963i 2.6390 - 2.8255i 3.9534 2.9155 -
0.3039i
1.8692 - 1.9634i 2.2955 - 1.9349i 2.9155 + 0.3039i 2.2816
然后,特征值为:
0.0412 0 0 0
0 0.1996 0 0
0 0 2.0591 0
0 0 0 16.6361
特征向量是:
-0.0506 + 0.2898i 0.1137 + 0.6431i -0.1009 - 0.3856i 0.3665 +
0.4403i
-0.0942 - 0.2603i -0.3552 - 0.5019i -0.3791 - 0.1255i 0.4927 +
0.3782i
-0.5045 - 0.0249i 0.2804 - 0.2056i 0.6644 - 0.0427i 0.4221 -
0.0503i
0.7627 -0.2731 0.4882 0.3245
请帮忙!
Hi all,
I want to write a C program to compute eigenvalues and eigenvectors.
But the matrix is a complex matrix which has all complex numbers. Like
this:
5.8751 5.8774 + 1.5423i 2.0818 + 2.8963i 1.8692 +
1.9634i
5.8774 - 1.5423i 6.8258 2.6390 + 2.8255i 2.2955 +
1.9349i
2.0818 - 2.8963i 2.6390 - 2.8255i 3.9534 2.9155 -
0.3039i
1.8692 - 1.9634i 2.2955 - 1.9349i 2.9155 + 0.3039i 2.2816
Then, the eigenvalues are:
0.0412 0 0 0
0 0.1996 0 0
0 0 2.0591 0
0 0 0 16.6361
eigenvectors are:
-0.0506 + 0.2898i 0.1137 + 0.6431i -0.1009 - 0.3856i 0.3665 +
0.4403i
-0.0942 - 0.2603i -0.3552 - 0.5019i -0.3791 - 0.1255i 0.4927 +
0.3782i
-0.5045 - 0.0249i 0.2804 - 0.2056i 0.6644 - 0.0427i 0.4221 -
0.0503i
0.7627 -0.2731 0.4882 0.3245
Please help!
推荐答案
2007年5月17日22:18:09 -0700,Jedora< je **** @ gmail.comwrote:
On 17 May 2007 22:18:09 -0700, Jedora <je****@gmail.comwrote:
>大家好,
我想写一个用于计算特征值和特征向量的C程序。
但矩阵是一个复杂的矩阵,它具有所有复数。喜欢
这个:
5.8751 5.8774 + 1.5423i 2.0818 + 2.8963i 1.8692 +
1.9634i
5.8774 - 1.5423i 6.8258 2.6390 + 2.8255i 2.2955 +
1.9349i
2.0818 - 2.8963i 2.6390 - 2.8255i 3.9534 2.9155 -
0.3039i
1.8692 - 1.9634i 2.2955 - 1.9349i 2.9155 + 0.3039i 2.2816
那么,特征值是:
0.0412 0 0 0
0 0.1996 0 0
0 0 2.0591 0
0 0 0 16.6361
特征向量是:
-0.0506 + 0.2898i 0.1137 + 0.6431i -0.1009 - 0.3856i 0.3665 +
0.4403i
-0.0942 - 0.2603i -0.3552 - 0.5019i -0.3791 - 0.1255i 0.4927 +
0.3782i
-0.5045 - 0.0249i 0.2804 - 0.2056i 0.6644 - 0.0427i 0.4221 -
0.0503i
0.7627 -0.2731 0.4882 0.3245
请帮忙!
>Hi all,
I want to write a C program to compute eigenvalues and eigenvectors.
But the matrix is a complex matrix which has all complex numbers. Like
this:
5.8751 5.8774 + 1.5423i 2.0818 + 2.8963i 1.8692 +
1.9634i
5.8774 - 1.5423i 6.8258 2.6390 + 2.8255i 2.2955 +
1.9349i
2.0818 - 2.8963i 2.6390 - 2.8255i 3.9534 2.9155 -
0.3039i
1.8692 - 1.9634i 2.2955 - 1.9349i 2.9155 + 0.3039i 2.2816
Then, the eigenvalues are:
0.0412 0 0 0
0 0.1996 0 0
0 0 2.0591 0
0 0 0 16.6361
eigenvectors are:
-0.0506 + 0.2898i 0.1137 + 0.6431i -0.1009 - 0.3856i 0.3665 +
0.4403i
-0.0942 - 0.2603i -0.3552 - 0.5019i -0.3791 - 0.1255i 0.4927 +
0.3782i
-0.5045 - 0.0249i 0.2804 - 0.2056i 0.6644 - 0.0427i 0.4221 -
0.0503i
0.7627 -0.2731 0.4882 0.3245
Please help!
我有这本书C中的数字配方有一章关于
eigen-stuff。
也许这个标题对谷歌来说是一个很好的搜索短语?
啊..是的:< a rel =nofollowhref =http://www.nr.comtarget =_ blank> www.nr.com !!
肯定是你可以在网上找到相应的来源...我在EMULE P2p找到了它的价值
I have this book "Numerical recipes in C" that has a chapter on
eigen-stuff.
maybe this title is a good search phrase for google ?
ah.. yes: www.nr.com !!
surely you could find the accompanying source on the net... I found it
on EMULE P2p...
On 2007-05-18 11 :47:41 +0200,Osiris< no ** @ hotmail.comsaid:
On 2007-05-18 11:47:41 +0200, Osiris <no**@hotmail.comsaid:
我有这本书C中的数字食谱有一章关于
eigen-stuff。
也许这个标题对谷歌来说是一个很好的搜索短语?
啊..是的:< a rel =nofollowhref =http://www.nr.comtarget =_ blank> www.nr.com !!
肯定是你可以在网上找到相应的来源......我发现它在EMULE P2p上是
...
I have this book "Numerical recipes in C" that has a chapter on
eigen-stuff.
maybe this title is a good search phrase for google ?
ah.. yes: www.nr.com !!
surely you could find the accompanying source on the net... I found it
on EMULE P2p...
当然你读到了书和里面的代码片段是
受版权保护且非免费的,对吗?
-
Sensei< senseiwa at Apple的mac dot com>
如果你在不到10秒的时间内得到这个,那么你就是经过认证的极客。
" FEATUR"
(旧大众甲壳虫上看到的车牌)
And surely you read that the book and the code snippets inside are
copyrighted and non-free, right?
--
Sensei <senseiwa at Apple''s mac dot com>
If you get this in less than 10 seconds, then you are a certified geek.
"FEATUR"
(License plate seen on an old Volkswagen Beetle)
Sensei写道:
Sensei wrote:
在2007-05-18 11:47:41 +0200,Osiris< no ** @ hotmail.comsaid:
On 2007-05-18 11:47:41 +0200, Osiris <no**@hotmail.comsaid:
>我有这本书 C中的数字配方有一章关于本征的东西。
也许这个标题对谷歌来说是一个很好的搜索短语?
啊..是的: www.nr.com !!
当然你可以在网上找到相应的来源......我找到了它/>关于EMULE P2p ...
>I have this book "Numerical recipes in C" that has a chapter on
eigen-stuff.
maybe this title is a good search phrase for google ?
ah.. yes: www.nr.com !!
surely you could find the accompanying source on the net... I found it
on EMULE P2p...
你肯定读过那本书和里面的代码片段是
版权所有且非免费,对吧?
And surely you read that the book and the code snippets inside are
copyrighted and non-free, right?
[加,对不起]
当然这意味着可以从参考中输入并尝试
他们不用担心报复。版权是在作品创建的时刻被授予的,但我认为没有道德上的理由为什么有人在互联网上找不到代码
来学习。
-
clvrmnky< mailto:sp ****** @ clevermonkey.org>
直接回复将被列入黑名单。替换spamtrap用我的名字
直接与我联系。
[OT, sorry]
Surely that means that one can type them in from a reference and try
them without fear of reprisal. Copyright was granted the moment the work
was created, but I see no moral reason why someone can''t find the code
on the internet to study.
--
clvrmnky <mailto:sp******@clevermonkey.org>
Direct replies will be blacklisted. Replace "spamtrap" with my name to
contact me directly.
这篇关于如何用C编程语言计算特征值和特征向量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!