1. WAP in Python to plot a quadratic equation using dashed Line Chart.
Equation is 0.5*x**2+1
import matplotlib.pyplot as plt
import numpy as np
x=np.arange(2,11,2)
y=0.5*x**2+1
plt.plot(x,y,marker='*')
plt.xlabel("X Axis")
plt.ylabel("Y Axis")
plt.title("Line Chart")
plt.show()
No comments:
Post a Comment