21mid0045 Aod Da-1

You might also like

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

Application Of Differentials and Difference

Equations

LAB ASSIGNMENT-1

NAME: Sricharan R
REG NO: 21MID0045
COURSE CODE: MAT2002
SLOT: L21+L22
FACULTY : Praveen T
1.
a. Prepare an assignment for the basics of MATLAB. Content must
be related to the syllabus. Find out the syntaxes, commands
related to the course content.
Sol:

i. Creating a 2x2 and 3x3 matrix

ii. Creating identity matrix of 2x2 matrix.

iii. Finding limit of a function.


CODE:

OUTPUT:

iv. Finding the first and second derivative of a function.


CODE:
OUTPUT:

v. Finding the definite integration of a function.


CODE:

OUTPUT:

vi. Plotting the graph for the function.


CODE:

OUTPUT:

b. Write a program for Goldbach Conjecture to find the number of


steps to reach 1.

CODE:
OUTPUT:

2. Write a MATLAB code to generate Fourier series for continuous periodic


functions.
I.

a.
CODE:
OUTPUT:
b.
CODE:

OUTPUT:
c.
CODE:

OUTPUT:
II.
CODE:

OUTPUT:

You might also like