You are on page 1of 7

Institute of Engineering &

Management
KOLKATA, INDIA

Department of Basic Science & Humanities

Lab Report

Mathematics-I Lab using MATLAB


BTHBSCBSH103

Name: SAYAN CHATTERJEE


Section: H Class Roll No.: 7
Enrolment No.:
Course: B. Tech Stream: CSE(AI)
Semester: 1st
Table of Contents

S. Assignment Date Page Signature


No. No.
1. To plot the Graph of 31/08/2023 3
y=sin x
2. To plot the graph of 31/08/2023 4
y=cos x
3. To the graph of y=ex 31/08/2023 5

4. To plot the graph of 31/08/2023 6


y=|x|
5. To plot the graph of 31/08/2023 7
the polynomial
y=x(x-1)(x-2)

2
Date: 31/08/2023
Assignment 1

Title: To plot the graph of y=sin x


Code:
>>x=-pi:0.01:pi;
>>y=sin(x);
>>plot(x,y)
Graph:

3
Date: 31/08/2023
Assignment 2

Title: To plot the graph of y=cos x


Code:
>>x=-pi:0.01:pi;
>>y=cos(x);
>>plot(x,y)
Graph:

4
Date: 31/08/2023
Assignment 3

Title: To plot the graph of y=ex


Code:
>>x=-10:0.01:10;
>>y=exp(x);
>>plot(x,y)
Graph:

5
Date: 31/08/2023
Assignment 4

Title: To plot the graph of y=|x|


Code:
>>x=-10:0.01:10;
>>y=abs(x);
>>plot(x,y)
Graph:

6
Date: 31/08/2023
Assignment 5

Title: To plot the graph of y=x(x-1)(x-2)


Code:
>>x=-10:0.01:10;
>>y=abs(x);
>>plot(x,y)
Graph:

You might also like