Did you know zero has a secret twin?
Image: Peter Martin, CC BY 2.0, via Wikimedia Commons
Did you know zero has a secret twin?
Imagine you're dividing by a number that should be zero but isn't. What happens to your result?
In math, dividing by zero is a no-go. But computers have a workaround with negative and positive zero, treating them as different but equal.
Example
Dividing 5 by 0 in a computer gives you infinity, while dividing 5 by negative zero gives you negative infinity.
Remember this
Negative zero and positive zero are like mirror images of zero in the world of computers.
Text adapted from Wikipedia, licensed under CC BY-SA 4.0.
Fuzzy concept
Did you know zero wasn't always zero?
Timeline of condensed matter physics
Did you know electricity flows without resistance?
Glossary of physics
Ever wondered how scientists track the spread of diseases?
Enigma machine
Can you keep a secret that changes every time you whisper it?
Colossus computer
Did you know the first computer was built to crack secret codes?
Quantum mechanics
Ever wondered how tiny particles behave differently than big objects?
Swipe through 100 ML concepts daily
Open Pocket Polymath