1.exploration With CAS-I.Lab1
1.exploration With CAS-I.Lab1
C1UC122B(Lab)
Objectives:
• Role of semicolon ;
If a semicolon(;) is typed at the end of a command the output of the command is not
displayed
--> 2;3;5
ans =
5.
• Role of commands: clc and clear
clc is used to clear the console though data will still remain stored in the memory
clear removes data from memory
1.4.Arithmetic Operations with scalars
Compute:
(i)7+8/2
(ii) (7+8)/2
(iii) ( 4+2X5)/7
(iv) 271/3+ 320.2
(Answrs: (i)11, (ii)7.5, (iii)2, (iv) 5
1.5.Elementary Math Build-in functions
x! factorial(x) -->factorial(5)
ans=
120
%pi -->%pi/3
ans=
1.0471976