next up previous contents index
Next: 2.2.0.0.2 Vectors Up: 2.2 Constant Matrices Previous: 2.2 Constant Matrices

  
2.2.0.0.1 Scalars

Scalars are either real or complex numbers. The values of scalars can be assigned to variable names chosen by the user.
--> a=5+2*%i
 a         =
 
    5. + 2.i  
 
--> B=-2+%i;

--> b=4-3*%i
 b  =
 
    4. - 3.i 
 
--> a*b
 ans  =
 
    26. - 7.i  
 
-->a*B
 ans  =
 
  - 12. + i
Note that Scilab evaluates immediately lines that end with a carriage return. Instructions that ends with a semi-colon are evaluated but are not displayed on screen.


next up previous contents index
Next: 2.2.0.0.2 Vectors Up: 2.2 Constant Matrices Previous: 2.2 Constant Matrices
Scilab Group