HM1_Serien/serie1/IT19ta_ZH7_S1_Aufg1.py
2020-09-22 17:21:08 +02:00

22 lines
357 B
Python

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()