Google's ingenious variable-precision Calculator app

Поділитися
Вставка
  • Опубліковано 29 гру 2024

КОМЕНТАРІ • 29

  • @bonez565
    @bonez565 2 роки тому +10

    That's a neat feature. It works on my phone as well (note 10+, android 12)

  • @AwesomeWizard1
    @AwesomeWizard1 15 днів тому +1

    The calculator's highest value that it can represent is 2^250001 - 1 (you can test this by adding every power of less than 2^250001 so 2^250000 + 2^249999 ...), which is pretty cool.

  • @big_badaboom
    @big_badaboom 2 роки тому +10

    Presumably it's using the Java BigDecimal class behind the scenes. But I wonder what is doing for irrational constants like PI. Presumably it just has it stored as a constant in the code - to some large number of decimal places.

    • @john_hind
      @john_hind 2 роки тому +10

      It is much cleverer than that. I tried to post a link, but it seems to have been redacted. Try searching for "Small-data computing: correct calculator arithmetic".

    • @big_badaboom
      @big_badaboom 2 роки тому +2

      @@john_hind Very interesting. Thanks for the link.

    • @CalculatorCulture
      @CalculatorCulture  2 роки тому +4

      @@john_hind thanks! I added the link to the video description.

    • @DexieTheSheep
      @DexieTheSheep 2 роки тому +2

      Maybe it just calculates it as you go, whenever it needs more precision.

    • @CalculatorCulture
      @CalculatorCulture  2 роки тому +2

      @@DexieTheSheep yes that's correct. according to article linked in the video description "the number of additional digits computed each time is a bit more than of the number we have computed so far, so we recompute in larger chunks the further the user scrolls"

  • @jurjenbos228
    @jurjenbos228 2 роки тому +8

    Androids calculator does way more than what you show: it doesn't only do infinite precision, but also keeps track of the precision. For example, sin(pi/6) is 0,5 and not 0,50000000... to show you it is exact.

  • @finantra4511
    @finantra4511 8 місяців тому

    How to use memory function in this app

  • @UnlikelyAsItMaySeem
    @UnlikelyAsItMaySeem 2 роки тому

    Perhaps also of interest, for the command line, Simon Tatham's "spigot: an exact real calculator" but see the section "Hazards to computation"

  • @davidwyatt6907
    @davidwyatt6907 Рік тому +2

    Hi. Thanks (late) for his video.
    Not sure if you are aware that Python also seems to do this. Here is an example:
    >>> b=factorial(10000)
    >>> b+=1
    >>> b-=factorial(10000)
    >>> b
    1
    >>>
    cheers,
    David

    • @CalculatorCulture
      @CalculatorCulture  Рік тому +2

      Partly yes. Python uses bignums for integer arithmetic but floating point calculations use 64-bit double-precision values.

  • @hegedusuk
    @hegedusuk 2 роки тому

    The app you referenced for ios 'hypercalc' looks pretty good but it doesn't appear to be an arbitrary precision calculator. I can't seem to find one I'm afraid. Do you happen to have a link?

    • @CalculatorCulture
      @CalculatorCulture  2 роки тому

      I was thinking of Hipercalc hiperdevelopment.wixsite.com/hipercalc

  • @TheOnlyName
    @TheOnlyName 2 роки тому +1

    ooh that's really cool!

  • @Mythologos
    @Mythologos 2 роки тому +1

    Extra features you didn't mention: 25 trackers + Adware!

    • @intazoid
      @intazoid Рік тому

      🤭🤭

    • @priangsunath3951
      @priangsunath3951 6 місяців тому

      On the calculator app?
      I get it if you're talking about Google's version of Android in general but this is just the calculator
      what would be the motivation behind tracking calculations? How would you even sell that data, it doesn't tell advertisers anything about anyone? And what ads have you been getting on a calculator app??

  • @Sumguy21
    @Sumguy21 Рік тому +1

    I got 161283 digits of pi before it stopped scrolling

  • @G7VFY
    @G7VFY 2 роки тому

    My Android calculator does not do this....

    • @CalculatorCulture
      @CalculatorCulture  2 роки тому +14

      You might have an OEM calculator app, eg the Samsung one? You can get the Google Calculator from the Play Store.