Le 13/11/2019 à 11:09, Dang Ngoc Chan, Christophe a écrit :

Hello,

De : De la part de Jean-Philippe Grivet
Envoyé : mercredi 13 novembre 2019 10:50

--> z = [1,2,3*%i]
   z  =
     1.   2.   3.i
--> isreal(z(1))
   ans  =
    F
What did I miss ? Rhank you for your help.
https://antispam.utc.fr/proxy/2/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/help.scilab.org/docs/6.0.2/en_US/brackets.html

"In some limits, brackets may be applied on a set of data having different but 
compatible types. In this case, some data are converted into the dominating type 
available in the set. The main conversion rules are the following:
[...]
3. The result becomes complex-encoded as soon as a complex-encoded component -- 
value, polynomial, or rational -- is met in the list (even with a null imaginary 
part)"

This non-intuitive behavior will be fixed as soon as the patch

https://codereview.scilab.org/#/c/21090/

will be merged !

S.


Regards

--
Christophe Dang Ngoc Chan
Mechanical calculation engineer

General
This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error), please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden.
_______________________________________________
users mailing list
users@lists.scilab.org
https://

--
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet

_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users

Reply via email to