1.exploration With CAS-I.lab1
1.exploration With CAS-I.lab1
BBS0T1001(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
6
(iv) 4!+ln2+log100, (v) (2+3i)(4+5i)
2. By assigning values 2 and 5 to variables a and b respectively,
compute (i) c=(a+b)2
(ii) d=4a-3b+lna+ c2
3.Write the script file for the problem:
The radius of a circle is 2cm. Find its area.