
这是问题的列表,,能帮我解决吗?需要很快的时间,麻烦各位了!!
import numpy as np
from matplotlib import pyplot as plt
x = np.arange(-10, 10, 0.1)
y = x
plt.xlabel('x')
plt.ylabel('f(x)')
plt.title("f(x)=x")
plt.plot(x, y)
plt.show()
x = np.arange(-10, 10, 0.1)
y = x ** 2
plt.xlabel('x')
plt.ylabel('f(x)')
plt.title("f(x)=x^2")
plt.plot(x, y)
plt.show()
x = np.arange(-10, 10, 0.1)
y = x ** 3
plt.xlabel('x')
plt.ylabel('f(x)')
plt.title("f(x)=x^3")
plt.plot(x, y)
plt.show()
x = np.arange(-10, 10, 0.1)
y = x ** 0.5
plt.xlabel('x')
plt.ylabel('f(x)')
plt.title("f(x)=x^0.5")
plt.plot(x, y)
plt.show()
x = np.arange(-10, 10, 0.1)
y = np.log(1/x)
plt.xlabel('x')
plt.ylabel('f(x)')
plt.title("f(x)=ln(x)")
plt.plot(x, y)
plt.show()