And, as a mathematician who has been coding a library to create scaled geometric graphics for his paper, I hate -0.0.
Seriously, I run every number where sign determines action through a function I call “fix_zero” just because tiny tiny rounding errors pile up in floats, even is numpy.
Gladaed@feddit.de 1 month ago
Also in Math.
marcos@lemmy.world 1 month ago
Unknowingly from the GP, that’s where CE got it from.
Gladaed@feddit.de 1 month ago
What is gp/ce?
marcos@lemmy.world 1 month ago
Grand parent / computer engineering
Leate_Wonceslace@lemmy.dbzer0.com 1 month ago
What algebra uses negative 0?
agamemnonymous@sh.itjust.works 1 month ago
When taking about limits, you can approach 0 from the positive or negative direction, which can give very different results. For example, lim cotx, x->0+ = ∞ while lim cotx, x->0- = -∞
Leate_Wonceslace@lemmy.dbzer0.com 1 month ago
Speaking as a mathematician, it’s not really accurate to call that -0.
barsoap@lemm.ee 1 month ago
IEEE 754
I mean it’s an algebra, isn’t it? And it definitely was mathematicians who came up with the thing. In the same way that artists didn’t come up with the CGI colour palette.
Gladaed@feddit.de 1 month ago
Math is more than just the set of all algebras.
Leate_Wonceslace@lemmy.dbzer0.com 1 month ago
I’m aware. Algebra is what I’m most interested in, and so when someone says “0” I think “additive identity of a ring” unless context makes the use obvious.