[Scilab-users] Problem with SCILAB 5 and 6 Version

classic Classic list List threaded Threaded
3 messages Options
lepezhr lepezhr
Reply | Threaded
Open this post in threaded view
|

[Scilab-users] Problem with SCILAB 5 and 6 Version

In SCILAB 6 this code:

function ingres()
A=input ('Ingrese la matriz A   ');
disp(A);
b=input ('Ingrese el vector independiente b ');
disp(b);

endfunction


in console, with 6 version of SCILAB Input function faild, i don't know why?? because in older version works with no problems.

--> ingres
Ingrese la matriz A   
[4,3,-2,1;3,2,1,5;-2,3,1,2;-5,0,1,1]

   4.   3.  -2.   1.
   3.   2.   1.   5.
  -2.   3.   1.   2.
  -5.   0.   1.   1.
Ingrese el vector independiente b   
--> [4;-8;-7;-8]
Ingrese el vector independiente b   
[4;-8;-7;-8]


  -8.



Héctor Lépez Cel: 154137337

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Samuel GOUGEON Samuel GOUGEON
Reply | Threaded
Open this post in threaded view
|

Re: Problem with SCILAB 5 and 6 Version

Hello Héctor

Are you using the latest Scilab 6.0.1 release?
input() was bugged in previous Scilab 6.0.0+/- releases, but it is now fixed:

--> function ingres()
  >
  > A=input ('Ingrese la matriz A   ');
  >
  > disp(A);
  >
  > b=input ('Ingrese el vector independiente b   ');
  >
  > disp(b);
  >
  >
  > endfunction

--> ingres
Ingrese la matriz A   [4,3,-2,1;3,2,1,5;-2,3,1,2;-5,0,1,1]

   4.   3.  -2.   1.
   3.   2.   1.   5.
  -2.   3.   1.   2.
  -5.   0.   1.   1.

Ingrese el vector independiente b    [4;-8;-7;-8]


   4.
  -8.
  -7.
  -8.


HTH
Samuel

Le 21/03/2018 à 13:18, Hector R. Lepez a écrit :
In SCILAB 6 this code:

function ingres()
A=input ('Ingrese la matriz A   ');
disp(A);
b=input ('Ingrese el vector independiente b ');
disp(b);

endfunction


in console, with 6 version of SCILAB Input function faild, i don't know why?? because in older version works with no problems.

--> ingres
Ingrese la matriz A   
[4,3,-2,1;3,2,1,5;-2,3,1,2;-5,0,1,1]

   4.   3.  -2.   1.
   3.   2.   1.   5.
  -2.   3.   1.   2.
  -5.   0.   1.   1.
Ingrese el vector independiente b   
--> [4;-8;-7;-8]
Ingrese el vector independiente b   
[4;-8;-7;-8]


  -8.



Héctor Lépez Cel: 154137337


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



_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
lepezhr lepezhr
Reply | Threaded
Open this post in threaded view
|

Re: Problem with SCILAB 5 and 6 Version

YES SAMUEL!, thats the problem, i update SCILAB and fixed. Thanks!.


Héctor Lépez Cel: 154137337


El miércoles, 21 de marzo de 2018 10:03:36 ART, Samuel Gougeon <[hidden email]> escribió:


Hello Héctor

Are you using the latest Scilab 6.0.1 release?
input() was bugged in previous Scilab 6.0.0+/- releases, but it is now fixed:

--> function ingres()
  >
  > A=input ('Ingrese la matriz A   ');
  >
  > disp(A);
  >
  > b=input ('Ingrese el vector independiente b   ');
  >
  > disp(b);
  >
  >
  > endfunction

--> ingres
Ingrese la matriz A   [4,3,-2,1;3,2,1,5;-2,3,1,2;-5,0,1,1]

   4.   3.  -2.   1.
   3.   2.   1.   5.
  -2.   3.   1.   2.
  -5.   0.   1.   1.

Ingrese el vector independiente b    [4;-8;-7;-8]


   4.
  -8.
  -7.
  -8.


HTH
Samuel

Le 21/03/2018 à 13:18, Hector R. Lepez a écrit :
In SCILAB 6 this code:

function ingres()
A=input ('Ingrese la matriz A   ');
disp(A);
b=input ('Ingrese el vector independiente b ');
disp(b);

endfunction


in console, with 6 version of SCILAB Input function faild, i don't know why?? because in older version works with no problems.

--> ingres
Ingrese la matriz A   
[4,3,-2,1;3,2,1,5;-2,3,1,2;-5,0,1,1]

   4.   3.  -2.   1.
   3.   2.   1.   5.
  -2.   3.   1.   2.
  -5.   0.   1.   1.
Ingrese el vector independiente b   
--> [4;-8;-7;-8]
Ingrese el vector independiente b   
[4;-8;-7;-8]


  -8.



Héctor Lépez Cel: 154137337


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


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

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