22 lines
357 B
Python
Executable File
22 lines
357 B
Python
Executable File
import numpy
|
|
import matplotlib.pyplot as plt
|
|
|
|
|
|
def funktion():
|
|
plt.figure()
|
|
plt.xlabel("x")
|
|
plt.ylabel("y")
|
|
|
|
x = numpy.arange(-10, 10)
|
|
y = (x ** 5 - 5 * x ** 4 - 30 * x ** 3 + 110 * x ** 2 + 29 * x - 105)
|
|
plt.xlim(1100)
|
|
plt.ylim(1100)
|
|
plt.grid()
|
|
plt.plot(x, y)
|
|
|
|
plt.show()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
funktion()
|