# y=sin(x) and y=cos(x^2)
# python code is as follows:
# -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(0, 10, 1000)
y1 = np.sin(x)
y2= np.cos(x**2)
plt.figure(figsize=(8,6))
plt.plot(x,y1,color="red",linewidth=2,label="$y=sin(x)$")
plt.plot(x,y2,"b--",label="$y=cos(x^2)$")
plt.xlabel("Time(s)")
plt.ylabel("Volt")
plt.title("$y=sin(x)$ and $y=cos(x^2)$ ")
plt.ylim(-1.2,1.2)
plt.legend(loc='lower left')
plt.show()
# The output is as follows: