37 points

FYI OP, Discord breaks external image links after a pretty short period.

For future generations:

permalink
report
reply
-15 points

I mean it’s fine for me, but if it’s broken for others I’ll just use this one then.

permalink
report
parent
reply
17 points
*

For future people here. They’ll disable the link after a few days. When taking things off discord you have to now download the image, they no longer want to host things.

permalink
report
parent
reply
2 points
Deleted by creator
permalink
report
parent
reply
51 points

Don’t be irrational

permalink
report
reply
10 points

But floating-point notation also can’t precisely represent irrational numbers…

permalink
report
parent
reply
1 point

What superior method do you propose?

permalink
report
parent
reply
12 points
*

Following Pythagoreanism and believing irrational numbers to be blasphemous. They’re represented by being struck down by the gods.

permalink
report
parent
reply
1 point

Symbolical computation is cool

permalink
report
parent
reply
1 point

But some irrational numbers are only so in base 10

permalink
report
parent
reply
9 points

What? That’s not true at all…

permalink
report
parent
reply

Kinda. Technicaly no since an irrational number is a number that cannot be defined as a ratio of 2 existing rational numbers. Any number that can be represented in any rational base can by definition be represented as a ratio of somthing/base^n. This ignore the case of an irrational base but its practically useless cos any rational and most other irrational numbers will be irrational.

What u think ur trying to say is that some numbers cannot be represented in one base but can in another for example 1/3 can be represented as a decimal in base 3 but cannot jn base 10 ie u get 0.333(3 repeating forever).

Tieing back to floating point which uses base 2 u end up with simmillar issues with base10 base2 conversions hence most of the errors with floating point errors (yes at very large and very small numbers u lose accuracy but in practice most errors arise from base convention).

permalink
report
parent
reply
39 points
*

For those who are curious, that’s the IEEE 754 representation of the number 300.

permalink
report
reply
21 points

Sigh, and I wanted to reply with

It’s over 01000110000011001010000000000000!

permalink
report
parent
reply
20 points

Man that’s a big factorial

permalink
report
parent
reply
3 points

That was a very good guess!

permalink
report
parent
reply
2 points

What? Why?

permalink
report
parent
reply
12 points
*

Each section of the binary number represents a different component needed to construct the number 300. It uses clever math to be able to represent decimals. It’s like asking you whether a number is positive or negative, then the position of the decimal point, then what the digits are.

Specifically…

The first 0 means the number is positive. The number formed by the next eight bits (the exponent) and the number from the remaining bits (the mantissa) multiply to get 300.

The exponent bits choose the value of N in the formula 2N-127 . For the mantissa, we start with the number 1, then each “1” bit starting from the left adds to it 0.5, then 0.25, and so on. Specifically, we have 28×1.171875.

permalink
report
parent
reply
2 points

Aaaaaaaaaghhhh bitwise arithmetic aaaaaahhhhffggffg it’s all coming back YOU DON’T KNOW WHAT YOU’VE UNLEASHED KHGHHAAAA

permalink
report
parent
reply
1 point

But thank you for the explanation

permalink
report
parent
reply
34 points

Honestly, as far as fresh takes on memes go, I loved that one quite a bit

permalink
report
reply
10 points

Have had too many debates with senior programmers who don’t understand why multiplying by 0.1 doesn’t work.

“It works in <favorite language>, why doesn’t it work in <not favorite language>?”

permalink
report
reply
4 points

BigDecimal go brrrr

permalink
report
parent
reply

Science Memes

!science_memes@mander.xyz

Create post

Welcome to c/science_memes @ Mander.xyz!

A place for majestic STEMLORD peacocking, as well as memes about the realities of working in a lab.



Rules

  1. Don’t throw mud. Behave like an intellectual and remember the human.
  2. Keep it rooted (on topic).
  3. No spam.
  4. Infographics welcome, get schooled.

This is a science community. We use the Dawkins definition of meme.



Research Committee

Other Mander Communities

Science and Research

Biology and Life Sciences

Physical Sciences

Humanities and Social Sciences

Practical and Applied Sciences

Memes

Miscellaneous

Community stats

  • 10K

    Monthly active users

  • 3.2K

    Posts

  • 51K

    Comments