DATA TYPES,
CONSTANT, AND
VARIABLES IN
SCILAB
By Group 1
Abatayo
Miglabin
Tayab
What is Scilab?
Scilab is provided with a number of demos to show the software abilities. SCILAB can be used for simple
arithmetic operations as well as for some algebraic operations, to generate graphics, to program functions, and
to solve linear algebra problems and ordinary differential equations, among other things. You can also program
SCILAB and produce simple or fancy graphic user interface components for your program.
DATA TYPES
CONSTANT
DOUBLE
INTEGER (int8, int16, int32)
BOOLEAN
COMPLEX
STRING
POLYNOMIAL
LIST
FUNCTIONS
GRAPHICS HANDLE
Integer Data Type
1 Byte 1 Byte
int 8 uint 8
Type 1 Type 11
2 Byte 2 Byte
int 16 uint 16
Type 2 Type 12
4 Byte 4 Byte
int 32 uint 32
Type 4 Type 14
SPECIAL CONSTANTS
--> %i
%i =
%i represents sqrt(-I) 0. + i
--> %pi
%pi P = 3.1415927... %pi =
3.1415927
%e trigonometric constant e = 2.7182818 --> %e
%e =
2.7182818
%eps constant representing the precision of the machine --> %eps
%eps =
2.220D-16
%nan not a number
--> %nan
%nan =
%inf infinity Nan
--> %t
%t Boolean constant True ans =
T
%f Boolena constant False
--> %f
ans =
F