<reponame>gmasching/project-euler
def f(x):
	#return 1*x**3 + 5*x**2 - 2*x - 24
	#return 1*x**4 - 4*x**3 - 2*x**2 + 12*x - 3
	return 82*x + 6*x**2 - 0.67*x**3

print(f(2)-f(1))
#print((f(3.5) - f(0.5)) / -3)
#print(f(0.5))
def f(x):
	#return 1*x**3 + 5*x**2 - 2*x - 24
	#return 1*x**4 - 4*x**3 - 2*x**2 + 12*x - 3
	return 82*x + 6*x**2 - 0.67*x**3

print(f(2)-f(1))
#print((f(3.5) - f(0.5)) / -3)
#print(f(0.5))
#return 1*x**3 + 5*x**2 - 2*x - 24 #return 1*x**4 - 4*x**3 - 2*x**2 + 12*x - 3 #print((f(3.5) - f(0.5)) / -3) #print(f(0.5))