[Scilab-users] for-loop error

Rafael Guerra jrafaelbguerra at hotmail.com
Thu Oct 29 15:28:26 CET 2020


That is weird. Your code in my Scilab 6.1 on Win 10, shows:

  "j=7; Nstep=18; k=126 j*Nstep=126"
  "j=8; Nstep=18; k=144 j*Nstep=144"

Regards,
Rafael

-----Original Message-----
From: users <users-bounces at lists.scilab.org> On Behalf Of anna28
Sent: Thursday, October 29, 2020 4:08 PM
To: users at lists.scilab.org
Subject: Re: [Scilab-users] for-loop error

Hello,
thanks for your answer.

About the "PS", in fact, in my script, the name is not "matrix"... I've simplified the name to report it in the post (with a not 'clever' name, actually).


About the answer itself, yes, all the elements have 20 characters.

The point is the following:
"
j=7; Nstep=18; k=126 j*Nstep=126
j=8; Nstep=18; k=-112 j*Nstep=-112"

Why does it make 8*18=-112?
The matrix would have the index 8*18=144 but clearly it doesn't the index -112....





--
Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
_______________________________________________
users mailing list
users at lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



More information about the users mailing list