Conditional indexing issue with float precision

This is to be expected because of floating point error:

If there is an outcome for a calculation that follows from theory, you should generate that directly.

1 Like