本文介绍了如何用C编程语言计算特征值和特征向量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 大家好, 我想写一个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. Likethis:5.8751 5.8774 + 1.5423i 2.0818 + 2.8963i 1.8692 +1.9634i5.8774 - 1.5423i 6.8258 2.6390 + 2.8255i 2.2955 +1.9349i2.0818 - 2.8963i 2.6390 - 2.8255i 3.9534 2.9155 -0.3039i1.8692 - 1.9634i 2.2955 - 1.9349i 2.9155 + 0.3039i 2.2816Then, the eigenvalues are:0.0412 0 0 00 0.1996 0 00 0 2.0591 00 0 0 16.6361eigenvectors 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.0503i0.7627 -0.2731 0.4882 0.3245Please help!推荐答案 我有这本书C中的数字配方有一章关于 eigen-stuff。 也许这个标题对谷歌来说是一个很好的搜索短语? 啊..是的: www.nr.com !! 肯定是你可以在网上找到相应的来源...我在EMULE P2p找到了它的价值I have this book "Numerical recipes in C" that has a chapter oneigen-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 iton EMULE P2p... 当然你读到了书和里面的代码片段是 受版权保护且非免费的,对吗? - Sensei< senseiwa at Apple的mac dot com> 如果你在不到10秒的时间内得到这个,那么你就是经过认证的极客。 " FEATUR" (旧大众甲壳虫上看到的车牌)And surely you read that the book and the code snippets inside arecopyrighted 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) 你肯定读过那本书和里面的代码片段是 版权所有且非免费,对吧?And surely you read that the book and the code snippets inside arecopyrighted 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 trythem without fear of reprisal. Copyright was granted the moment the workwas created, but I see no moral reason why someone can''t find the codeon the internet to study.--clvrmnky <mailto:sp******@clevermonkey.org>Direct replies will be blacklisted. Replace "spamtrap" with my name tocontact me directly. 这篇关于如何用C编程语言计算特征值和特征向量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-20 09:32