756
Stop using floats (lemmy.world)
you are viewing a single comment's thread
view the rest of the comments
[-] Magnetar@feddit.de 15 points 6 months ago

Call me when you found a way to encode transcendental numbers.

[-] ytg@feddit.ch 9 points 6 months ago* (last edited 6 months ago)

Perhaps you can encode them as computation (i.e. a function of arbitrary precision)

[-] Magnetar@feddit.de 1 points 6 months ago

Hard to do as those functions are often limits and need infinite function applications. I'm telling you, math.PI is a finite lie!

[-] smeg@feddit.uk 6 points 6 months ago

Do we even have a good way of encoding them in real life without computers?

[-] fossphi@lemm.ee 11 points 6 months ago

Just think about them real hard

[-] Knock_Knock_Lemmy_In@lemmy.world 2 points 6 months ago

Here you go

[-] Chadus_Maximus@lemm.ee 4 points 6 months ago* (last edited 6 months ago)

May I propose a dedicated circuit (analog because you can only ever approximate their value) that stores and returns transcendental/irrational numbers exclusively? We can just assume they're going to be whatever value we need whenever we need them.

[-] frezik@midwest.social 2 points 6 months ago

Wouldn't noise in the circuit mean it'd only be reliable to certain level of precision, anyway?

[-] Chadus_Maximus@lemm.ee 1 points 6 months ago* (last edited 6 months ago)

I mean, every irrational number used in computation is reliable to a certain level of precision. Just because the current (heh) methods aren't precise enough doesn't mean they'll never be.

[-] anton@lemmy.blahaj.zone 1 points 5 months ago

You can always increase the precision of a computation, analog signals are limited by quantum physics.

this post was submitted on 26 Feb 2024
756 points (95.8% liked)

Programmer Humor

19138 readers
648 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS