Can you help me with this common problem I have?
Given two lists:
a={339.66666666666697`, -287.4444444444446`, 0.`}
and
b = {339.6666666666667`, -287.44444444444684`, -2.1316282072803006`*^-13}
Equal[a,b] gives False because
-2.1316282072803006`*^-13
is not equal to 0.
How can I solve this problem? I understand that it is something about precision settings, but I don't know how to write this.
PossibleZeroQ– IntroductionToProbability Nov 16 '22 at 15:09a - b // Norm // Chopbut for very large lists the sum of the errors accumulate so then you might want to only check the maximal error in the list witha - b // Norm[#, Infinity] & // Chop. That said they output 0 rather thanTrue. – userrandrand Nov 16 '22 at 20:50