funktionswerte.py 430 B

12345678910111213141516171819202122232425262728293031
  1. import math
  2. def f(x):
  3. wert= -5
  4. while wert <= 5:
  5. funktionswert= wert * wert
  6. print("f(" + str(wert) + ") = " + str(funktionswert))
  7. wert += 1
  8. def f1(x):
  9. wert= -5
  10. while wert <= 5:
  11. funktionswert= 2 * wert
  12. print("f'(" + str(wert) + ") = " + str(funktionswert))
  13. wert += 1
  14. def f2(x):
  15. print("f''(x) = 2")
  16. x = 0
  17. f(x)
  18. f1(x)
  19. f2(x)