Lets generate a large grid
grid=Table[{i,j},{i,0,10,.01},{j,0,10,.01}]
MemberQ[grid,{7.02,.02}]
The above MemberQ gives me False. (even though it must be true because the grid has every pair from (0,0) to (10,10) in increments of (.01)
It also gives me false for every ordered pair that starts with 7.02
I have tried wrapping the grid and the ordered pair in N function, but it did not solve the problem
I have also tried using a subset of the grid, i.e. grid[[703]]
replacing MemberQ with FreeQ does work though
(even stranger, I started a new kernel and tried the exercise again and now both MemberQ and FreeQ are giving me false for every ordered pair... i'll try restarting mathematica I guess.)
However, this doesn't solve the problem, and the result is still False. Surprisingly, MemberQ[Flatten[grid, 1], {7.03, 0.02}] gives True as output..
– Fraccalo Jan 29 '20 at 11:45