0% found this document useful (0 votes)
16 views10 pages

Maths Practical 1

This document outlines a series of practical exercises for a mathematics course focused on Python programming. The exercises involve plotting various mathematical functions using Python, including polynomial, logarithmic, trigonometric, and exponential functions over specified intervals. Students are required to create different types of plots, including 2D graphs, subplots, and customized markers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views10 pages

Maths Practical 1

This document outlines a series of practical exercises for a mathematics course focused on Python programming. The exercises involve plotting various mathematical functions using Python, including polynomial, logarithmic, trigonometric, and exponential functions over specified intervals. Students are required to create different types of plots, including 2D graphs, subplots, and customized markers.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

MATHEMATICS PRACTICAL NO.

01
MTC-243: Mathematics Practical: Python Programming Language-II

Title: 2D Graphs
1) Write a Python program to plot 2D graph of the functions f(x) = x2 and g(x)
= x3 in [−1, 1].
2) Write a Python program to plot 2D graph of the functions f(x) = log10(x) in
the interval [0, 5].
3) Using Python plot the graph of function f(x) = sin(x) on the interval [0, 2π].
4) Using Python plot the graph of function f(x) = sin-1 (x) on the interval [−1,
1].
5) Using Python, plot the graph of function f(x) = sin(x) − ex + 3x − log10(x) on
the Interval [0, π].
6) Plot the graph of f(x) = x5 in [0, 5] with red dashed line with circle markers.
7) Plot the graphs of sin x, cos x, ex and x 2 in [0, 5] in one figure with (2 × 2)
subplots.
8) Write a python program to Plot 2D X-axis and Y-axis black color and in the
same diagram plot green triangle with vertices [5, 4], [7, 4], [6, 6].
9) Plot the graph of y = e −x 2 in [−5, 5] with red dashed-points line with Upward
Pointing triangle.
10) Write a Python program to plot the graph 2x2 − 4x + 5 in [–10, 10]
in magenta colored dashed pattern.

* * *

You might also like