Maths Practical 1
Maths Practical 1
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.
* * *