[Scilab-users] Spec function

Rafael Guerra jrafaelbguerra at hotmail.com
Mon May 25 08:17:59 CEST 2020


Hi,

In the sample code provided, the loops 'for j=length(b_V)', seem to only evaluate the case b=3.
It does not seem to match the explanation below.

Regards,
Rafael


From: users <users-bounces at lists.scilab.org> On Behalf Of fujimoto2005
Sent: Friday, May 22, 2020 4:06 PM
To: users at lists.scilab.org
Subject: [Scilab-users] Spec function

This question is about how to use the spec function to calculate eigenvalues.
Suppose a square matrix D is a function of real number b.
I am trying to find the eigenvalues of D for various b with the spec
function.
When I calculate for b = 1 and 3 simultaneously with the attached code, I
get all eigenvalues for b = 1 are 0.
However, I calculate for b = 1 alone , I get an eigenvalue of -0.5 ± 4.97i
and 0 otherwise.
Why are the results of the two methods different? Is the usage of the spec
function wrong? Which result is correct?

Best regards

testSpec.sce <http://mailinglists.scilab.org/file/t497065/testSpec.sce>  




More information about the users mailing list