Might the DeleteCases
have issues in matching when the list is of floats (machine precision numbers)? E.g. in this code it might fail to match correctly because float==float is not a good operation:
ClearAll[a];
a = RandomReal[{0, 1}, 5]
DeleteCases[a, Max[a]]
How would you handle this type of situations? What is the robust way?
Max[a]
is a member ofa
so it must match. $\endgroup$Max
that would cause the matching to fail? $\endgroup$