0% found this document useful (0 votes)
15 views5 pages

Scilab Data Types and Constants Guide

The document provides an overview of Scilab, a software used for various mathematical operations, including arithmetic, algebra, and graphics generation. It details different data types in Scilab, such as constants, integers, booleans, and strings, along with their specifications. Additionally, it lists special constants like %pi, %e, and %nan that are used within the Scilab environment.

Uploaded by

Danmar Malalis
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views5 pages

Scilab Data Types and Constants Guide

The document provides an overview of Scilab, a software used for various mathematical operations, including arithmetic, algebra, and graphics generation. It details different data types in Scilab, such as constants, integers, booleans, and strings, along with their specifications. Additionally, it lists special constants like %pi, %e, and %nan that are used within the Scilab environment.

Uploaded by

Danmar Malalis
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

You might also like