Can someone explain why some Numpy numbers aren't whole integers? When I run this:
print(np.sqrt(2.)**2)
I get:
2.0000000000000004
And why is it that I get
[ 0. 1.11111111 2.22222222 3.33333333 4.44444444 5.55555556
6.66666667 7.77777778 8.88888889 10. ]
when I print
print(np.linspace(0, 10, 10))