I'm utilizing the arange function to characterize my for loop iterations and getting startling outcomes.
i = arange(7.8,8.4,0.05)
print i
Gives the following:
[ 7.8 7.85 7.9 7.95 8. 8.05 8.1 8.15 8.2 8.25 8.3 8.35 8.4 ]
But still, utilizing the stop value of 8.35 as follows
i = arange(7.8,8.35,0.05)
yields the following
[ 7.8 7.85 7.9 7.95 8. 8.05 8.1 8.15 8.2 8.25 8.3 ]
However, I need my range to end at 8.35! I realize I can utilize the stop estimation of > 8.35 and < 8.4 to accomplish my outcome, however for what reason is it unique and in my mind, conflicting?
I'm using the 2.7 version