[Scilab-users] Spec function

Masahiro Fujimoto fujimoto2005 at gmail.com
Mon May 25 08:37:55 CEST 2020


Dear Rafael,
Thanks for your reply.
You are  right.
It's due to my wrong code.
Best regards,
Masahiro Fujimoto

2020年5月25日(月) 15:18 Rafael Guerra <jrafaelbguerra at hotmail.com>:

> 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>
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20200525/4aa5c498/attachment.htm>


More information about the users mailing list