I wrote this function to avoir typing on a calculator and make my homework faster but something very strange happened :
def G(x):
return 1 - x ** 2 - (1-x) ** 2
G(1/5) gives 0.31999999999999984
But it is clearly 25/25 - 1/25 - 16/25 with is 8/25 = 0.32