<div dir="ltr">Dear Rafael,<div>Thanks for your reply.</div><div>You are right.</div><div>It's due to my wrong code.</div><div>Best regards,</div><div>Masahiro Fujimoto</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">2020年5月25日(月) 15:18 Rafael Guerra <<a href="mailto:jrafaelbguerra@hotmail.com">jrafaelbguerra@hotmail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
In the sample code provided, the loops 'for j=length(b_V)', seem to only evaluate the case b=3.<br>
It does not seem to match the explanation below.<br>
<br>
Regards,<br>
Rafael<br>
<br>
<br>
From: users <<a href="mailto:users-bounces@lists.scilab.org" target="_blank">users-bounces@lists.scilab.org</a>> On Behalf Of fujimoto2005<br>
Sent: Friday, May 22, 2020 4:06 PM<br>
To: <a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
Subject: [Scilab-users] Spec function<br>
<br>
This question is about how to use the spec function to calculate eigenvalues.<br>
Suppose a square matrix D is a function of real number b.<br>
I am trying to find the eigenvalues of D for various b with the spec<br>
function.<br>
When I calculate for b = 1 and 3 simultaneously with the attached code, I<br>
get all eigenvalues for b = 1 are 0.<br>
However, I calculate for b = 1 alone , I get an eigenvalue of -0.5 ± 4.97i<br>
and 0 otherwise.<br>
Why are the results of the two methods different? Is the usage of the spec<br>
function wrong? Which result is correct?<br>
<br>
Best regards<br>
<br>
testSpec.sce <<a href="http://mailinglists.scilab.org/file/t497065/testSpec.sce" rel="noreferrer" target="_blank">http://mailinglists.scilab.org/file/t497065/testSpec.sce</a>> <br>
<br>
<br>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@lists.scilab.org" target="_blank">users@lists.scilab.org</a><br>
<a href="http://lists.scilab.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a><br>
</blockquote></div>