Beehaw
  • Communities
  • Create Post
  • search
    Search
  • Login
  • Sign Up
fossilesque ( fossilesque@mander.xyz ) M to Science Memes@mander.xyzEnglish · 2 years ago

near zero

mander.xyz

message-square
25
link
fedilink
369

near zero

mander.xyz

fossilesque ( fossilesque@mander.xyz ) M to Science Memes@mander.xyzEnglish · 2 years ago
message-square
25
link
fedilink
  • henfredemars ( henfredemars@infosec.pub ) 
    link
    fedilink
    English
    arrow-up
    27
    ·
    2 years ago

    In computer engineering we have positive and negative zero.

    • PlexSheep ( PlexSheep@infosec.pub ) 
      link
      fedilink
      English
      arrow-up
      9
      ·
      2 years ago

      What do you mean? In two’s complement, there is only one zero.

      • yetAnotherUser ( yetAnotherUser@feddit.de ) 
        link
        fedilink
        English
        arrow-up
        28
        ·
        2 years ago

        IEEE 754 floating point numbers have a signed bit at the front, causing +0 and -0 to exist.

      • henfredemars ( henfredemars@infosec.pub ) 
        link
        fedilink
        English
        arrow-up
        16
        ·
        2 years ago

        Specifically I was referring to standard float representation which permits signed zeros. However, other comments provide some interesting examples also.

      • sus ( sus@programming.dev ) 
        link
        fedilink
        English
        arrow-up
        4
        ·
        2 years ago

        floats

      • Zerush ( Zerush@lemmy.ml ) 
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 years ago

        1- 0,99999…

        • PlexSheep ( PlexSheep@infosec.pub ) 
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 years ago

          Floating point numbers are not possible in two’s complement, besides that, what is your point? 0,99999999… is probably the same as 1.

          • Zerush ( Zerush@lemmy.ml ) 
            link
            fedilink
            English
            arrow-up
            2
            ·
            2 years ago

            Yes, mathematically it’s the same, but in physics there’s a guy named Heisenberg who denies that 0.99999… really gets to 1. There is always this difference, for a mathematician infinite is not a problem, but for a physicist it is, plus a very big one.

            • PlexSheep ( PlexSheep@infosec.pub ) 
              link
              fedilink
              English
              arrow-up
              2
              ·
              2 years ago

              True, it sounds like that might be a problem if we consider that physics has to be between math and computer science.

              (Have a nice day)

    • Gladaed ( Gladaed@feddit.de ) 
      link
      fedilink
      English
      arrow-up
      8
      ·
      2 years ago

      Also in Math.

      • Leate_Wonceslace ( Leate_Wonceslace@lemmy.dbzer0.com ) 
        link
        fedilink
        English
        arrow-up
        5
        ·
        2 years ago

        What algebra uses negative 0?

        • barsoap ( barsoap@lemm.ee ) 
          link
          fedilink
          English
          arrow-up
          6
          ·
          2 years 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.

          • Leate_Wonceslace ( Leate_Wonceslace@lemmy.dbzer0.com ) 
            link
            fedilink
            English
            arrow-up
            4
            ·
            edit-2
            2 years ago

            I’m not familiar with IEEE 754.

            Edit: I think this sort of space shouldn’t be the kind where people get downvoted for admitting ignorance honestly, but maybe that’s just me.

            • barsoap ( barsoap@lemm.ee ) 
              link
              fedilink
              English
              arrow-up
              4
              ·
              2 years ago

              It’s a wonderful world where 1 / 0 is ∞ and 1 / -0 is -∞, making a lot of high school teachers very very mad. OTOH it’s also a very strange world where x = y does not imply 1 / x = 1 / y. But it is, very emphatically, an algebra.

              Mostly it’s pure numerology, at least from the POV of most of the people using it.

              • Leate_Wonceslace ( Leate_Wonceslace@lemmy.dbzer0.com ) 
                link
                fedilink
                English
                arrow-up
                2
                ·
                2 years ago

                I’ll need to look at it more; it sounds interesting.

            • Gobbel2000 ( Gobbel2000@programming.dev ) 
              link
              fedilink
              English
              arrow-up
              4
              ·
              2 years ago

              IEEE 754 is the standard to which basically all computer systems implement floating point numbers. It specifically distinguishes between +0 and -0 among other weird quirks.

            • barsoap ( barsoap@lemm.ee ) 
              link
              fedilink
              English
              arrow-up
              2
              ·
              2 years ago

              You probably are familiar with the thing, just not under that name, and not as a subject of mathematical study. I am aware that there are, at least in theory, mathematicians never expanding beyond pen+paper (and that’s fine) but TBH they’re getting kinda rare. The last time you fired up Julia you probably used them, R, possibly, Coq, it’d actually be a surprise.

              They’re most widely known to trip up newbie programmers, causing excessive bug hunts and then a proud bug report stating “0.1 + 0.2 /= 0.3, that’s wrong”, to which the reply will be “nope, that’s exactly as the spec says”. The solution, to people who aren’t numerologists, is to sprinkle gratuitous amounts of epsilons everywhere.

        • Gladaed ( Gladaed@feddit.de ) 
          link
          fedilink
          English
          arrow-up
          2
          ·
          2 years ago

          Math is more than just the set of all algebras.

          • Leate_Wonceslace ( Leate_Wonceslace@lemmy.dbzer0.com ) 
            link
            fedilink
            English
            arrow-up
            2
            ·
            edit-2
            2 years 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.

            Edit: I’ve given it some thought, and I’m not convinced all algebras can fit in a set, because every non-empty set can have at least one algebra imposed upon them, and so the set of all algebras must have cardinality no less than the proper class of all sets. We also can’t have a set of all algebras (up to isomorphism) because iirc the surreal numbers are an algebra imposed on a structure that itself incorporates a proper class, and is thus incapable of being a set element.

            • barsoap ( barsoap@lemm.ee ) 
              link
              fedilink
              English
              arrow-up
              1
              ·
              2 years ago

              Depends, I’d say. Is your set theory incomplete or inconsistent?

Science Memes@mander.xyz

science_memes@mander.xyz

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !science_memes@mander.xyz

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

  • !spiders@lemmy.world

Other Mander Communities

Science and Research

  • !academia@mander.xyz
  • !science@mander.xyz
  • !scicomm@mander.xyz

Biology and Life Sciences

  • !abiogenesis@mander.xyz
  • !animal-behavior@mander.xyz
  • !anthropology@mander.xyz
  • !arachnology@mander.xyz
  • !balconygardening@slrpnk.net
  • !biodiversity@mander.xyz
  • !biology@mander.xyz
  • !biophysics@mander.xyz
  • !botany@mander.xyz
  • !ecology@mander.xyz
  • !entomology@mander.xyz
  • !fermentation@mander.xyz
  • !herpetology@mander.xyz
  • !houseplants@mander.xyz
  • !medicine@mander.xyz
  • !microscopy@mander.xyz
  • !mycology@mander.xyz
  • !nudibranchs@mander.xyz
  • !nutrition@mander.xyz
  • !palaeoecology@mander.xyz
  • !palaeontology@mander.xyz
  • !photosynthesis@mander.xyz
  • !plantid@mander.xyz
  • !plants@mander.xyz
  • !reptiles and amphibians@mander.xyz

Physical Sciences

  • !astronomy@mander.xyz
  • !chemistry@mander.xyz
  • !earthscience@mander.xyz
  • !geography@mander.xyz
  • !geospatial@mander.xyz
  • !nuclear@mander.xyz
  • !physics@mander.xyz
  • !quantum-computing@mander.xyz
  • !spectroscopy@mander.xyz

Humanities and Social Sciences

  • !archaeology@mander.xyz
  • !folklore@mander.xyz
  • !history@mander.xyz
  • !old_maps@mander.xyz

Practical and Applied Sciences

  • !exercise-and sports-science@mander.xyz
  • !gardening@mander.xyz
  • !self sufficiency@mander.xyz
  • !soilscience@slrpnk.net
  • !terrariums@mander.xyz
  • !timelapse@mander.xyz

Memes

  • !bushrat_confidential@slrpnk.net
  • !science_memes@mander.xyz

Miscellaneous

  • !answered@mander.xyz
  • !mander@mander.xyz
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 493 users / day
  • 2.59K users / week
  • 4.73K users / month
  • 9.87K users / 6 months
  • 272 local subscribers
  • 19.4K subscribers
  • 6.25K Posts
  • 56.4K Comments
  • Modlog
  • mods:
  • Salamander ( Sal@mander.xyz ) 
  • fossilesque ( fossilesque@mander.xyz ) 
  • SciBot ( SciBot@mander.xyz ) 
  • fossilesque ( fossilesque@lemmy.dbzer0.com ) 
  • BE: 0.19.15
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code