Original

Download as pdf or txt
Download as pdf or txt
You are on page 1of 22

Plot No.2, Sector 17-A, Yamuna Expressway, Greater Noida, Gautam Buddh Nagar, U.P.

, India

School of Basic and Applied Sciences


(Division of Mathematics)

Lab Report
Exploration with CAS-I
BBS01T1001_PR
B.Tech. (First Sem.2022-2023)

Submitted by: Submitted


Name: Ujjwal Sharma to:Miss Nidhi
Singh
Admn No: 22SCSE1010987
Section-13
S. No. List of Experiments
1. Installation of the Scilab, Overview, Basic syntax, Mathematical Operators,
Predefined constants, Built in functions.

2.
Complex numbers, Polynomials, Vectors.
3. Write a SCI Lab code for Matrix. Handling these data structures using built in
functions.
4.
Programming -Functions - Handling .sci files

5.
Write a SCI Lab code for Programming for Loops - Conditional statements
6.
Write a SCI Lab code for Graphics handling - 2D

7.
Write a SCI Lab code for Graphics handling - 3D

8.
Write a SCI Lab code for Taylor series expansion of some functions
9. Write a SCI Lab code for Fourier series expansion of different wave forms and
comparison with the original function
10.
Write a SCI Lab code for Computing double integrals in Cartesian coordinates
S. Experiment Date Date Faculty
No Signature
. (Scheduled) (Performed)
(with
date)
1. Installation of the Scilab, Overview,
Basic syntax, Mathematical
Operators, Predefined constants,
Built in functions.

2. Complex numbers, Polynomials,


Vectors.
3. Write a SCI Lab code for Matrix.
Handling these data structures
using built in functions.
4.
Programming -Functions -
Handling .sci files
5. Write a SCI Lab code for
Programming for Loops -
Conditional statements
6.
Write a SCI Lab code for Graphics
handling - 2D
7. Write a SCI Lab code for
Graphics handling - 3D
8. Write a SCI Lab code for Taylor
series expansion of some
functions
9. Write a SCI Lab code for Fourier
series expansion of different
wave forms and comparison with
the original function
10. Write a SCI Lab code for
Computing double integrals in
Cartesian coordinates
Experiment 01
Installation of Scilab, overview, Basic syntax, Mathematical
operators, Predefined constants, Built in functions
Objectives:
• To enhance the numerical computational skills of prospective
engineers using open source software /computer algebra system
CAS.
• To plot the graphs of complicated function.

Program-1
Write the scilab code to find the solution of the following
problems:
i. 7+8/2
CODE OUTPUT
↓ ↓

ii. (7+8)/2
CODE OUTPUT
↓ ↓
iii. ( 3+6x4)/2

CODE OUTPUT
↓ ↓

iv. 271/3+ 320.2

CODE OUTPUT
↓ ↓
v. 64 + e 4

CODE OUTPUT
↓ ↓


vi. sin + cos 600
6

CODE OUTPUT
↓ ↓
vii. 4!+ln2+log100

CODE OUTPUT
↓ ↓

viii. (2+3i)(4+5i)
CODE OUTPUT
↓ ↓
Program-2
By assigning values 2 and 5 to variables a and b respectively,
compute:

(i) c=(a+b)2
CODE OUTPUT
↓ ↓

(ii) d=4a-3b+ln(a)+ c2
CODE OUTPUT
↓ ↓
Assignment 01
1. Write the script file for the problem: The radius of a
circle is 2cm. Find its area.
CODE OUTPUT
↓ ↓

2. Write a program to find volume of cone with r=2cm and


h=3cm.
CODE OUTPUT
↓ ↓
Experiment 02
Complex numbers, Polynomials, Vectors

Objectives:
2.1. Creating 1-dim arrays(vectors)
• 2.1.1.creating a vector from a known list of numbers
• 2.1.2.Creating a vector with constant spacing by specifying the
first term, the spacing and the last term
• 2.1.3.Creating a vector with linear(equal) spacing by specifying
the first and last terms, and the number of terms.
2.2. Finding roots of a polynomial.

Program-1
Write a scilab code to find the sum and difference of two
complex numbers.

CODE OUTPUT
Program-2
Write a scilab code to find the multiplication of two complex
numbers.
CODE OUTPUT

Program-3

To write a Scilab code to find the solution of following


problems:

(i) Create a row vector with 3 elements.

CODE OUTPUT
↓ ↓
(ii) Create a column vector with 4 elements.

CODE OUTPUT
↓ ↓

Program-4
By taking first term a=1 and the last term b=10 create a
one dimensional array :

(i) By taking the spacing between two consecutive


terms d=2

CODE OUTPUT
↓ ↓
(ii) By taking the number of terms n= 12

CODE OUTPUT
↓ ↓

Program-5
Create two row vectors (one dimensional arrays) a and b
such that the following operations are defined and hence
find :

(i) 2a-3b

CODE OUTPUT
↓ ↓
(ii) 2(transpose a)-3(transpose b)

CODE OUTPUT
↓ ↓

Program-6
Find the roots of following polynomials:

(i) x2-x-2=0

CODE OUTPUT
↓ ↓
(ii) x3+1=0.

CODE OUTPUT
↓ ↓
Experiment 03
Write a SCI Lab code for Matrix, Handling these data
structures using built in functions.
Objectives:
3.1. Creating two-dimensional arrays(Matrix).
3.2. Mathematical operations with arrays.

Program-1
Write a program to find sum and difference of two matrices
CODE OUTPUT

Program-2
Write a program to find multiplication of two matrices
CODE OUTPUT
Assignment 03
1. Create two matrices( two dimensional arrays) A and B
such that the following operations are defined and hence :

(i) 3A-ABT

CODE OUTPUT
↓ ↓

2. Create a matrix A so that the following operations are


defined and find:

(i) Determinant of A

CODE OUTPUT
↓ ↓
(ii) Inverse of A

CODE OUTPUT
↓ ↓

(iii) Product of A and inverse of A

CODE OUTPUT
↓ ↓
Experiment 04
Programming – Functions –Handling .sci files.
Objectives:
5.1 Input function

Program-1
Write a program which takes two numbers as input from the user and
find its sum.

CODE:

OUTPUT:
Program-2
Write a program which takes two matrices as input from the user and
find the sum of the matrices.

CODE→

OUTPUT→
Experiment 05
Write a SCI Lab code for Programming for Loops -
Conditional statements
Objectives: conditional statements
5.1.1. the if –end structure
5.1.2. the if-else-end structure
5.1.3. the if-elseif-else-end structure

Program-1
Write a program to check whether a given number is even or odd.
CODE OUTPUT
↓ ↓

You might also like