np.isClose(3, 3) is TRUE
Comment on I just cited myself.
mpa92643@lemmy.world 4 months ago“Approximately equal” is just a superset of “equal” that also includes values “acceptably close” (using whatever definition you set for acceptable).
Unless you say something like:
a ≈ b ∧ a ≠ b
which implies a is close to b but not exactly equal to b, it’s safe to presume that a ≈ b includes the possibility that a = b.
match@pawb.social 4 months ago
EatATaco@lemm.ee 4 months ago
Can I get a citation on this? Because it doesn’t pass the sniff test for me. en.wikipedia.org/wiki/Approximation
mpa92643@lemmy.world 4 months ago
Sure! See ISO-80000-2
Here’s a link: cdn.standards.iteh.ai/…/ISO-80000-2-2019.pdf
Image
WldFyre@lemm.ee 4 months ago
ISO is not a source for mathematical definitions
mpa92643@lemmy.world 4 months ago
It’s a definition from a well-respected global standards organization. Can you name a source that would provide a more authoritative definition than the ISO?
There’s no universally correct definition for what the ≈ symbol means, and if you write a paper or a proof or whatever, you’re welcome to define it to mean whatever you want in that context, but citing a professional standards organization seems like a pretty reliable way to find a commonly-accepted and understood definition.