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 <

[hidden email]> On Behalf Of fujimoto2005

Sent: Friday, May 22, 2020 4:06 PM

To:

[hidden email]
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>

_______________________________________________

users mailing list

[hidden email]
http://lists.scilab.org/mailman/listinfo/users