I need a program which can make graphs by matplotlib with functions I write in the console. But it doesn't work with trigonometric functions. The code I already wrote is:
from numpy import linspace
import matplotlib.pyplot as plt
from math import sin, cos, tanprint("input a:")
a = float(input())
print("input b:")
b = float(input())
x = linspace(a, b, 1001)
y = eval(input())plt.plot(x, y)
plt.xlabel('x')
plt.ylabel('y')
plt.show()