Google's ingenious variable-precision Calculator app

Sdílet
Vložit
  • čas přidán 21. 08. 2024

Komentáře • 28

  • @bonez565
    @bonez565 Před 2 lety +10

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

  • @jurjenbos228
    @jurjenbos228 Před 2 lety +7

    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.

  • @davidwyatt6907
    @davidwyatt6907 Před rokem +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  Před rokem +2

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

  • @big_badaboom
    @big_badaboom Před 2 lety +9

    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 Před 2 lety +9

      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 Před 2 lety +2

      @@john_hind Very interesting. Thanks for the link.

    • @CalculatorCulture
      @CalculatorCulture  Před 2 lety +3

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

    • @DexieTheSheep
      @DexieTheSheep Před 2 lety +2

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

    • @CalculatorCulture
      @CalculatorCulture  Před 2 lety +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"

  • @UnlikelyAsItMaySeem
    @UnlikelyAsItMaySeem Před 2 lety

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

  • @TheOnlyName
    @TheOnlyName Před rokem +1

    ooh that's really cool!

  • @finantra4511
    @finantra4511 Před 4 měsíci

    How to use memory function in this app

  • @hegedusuk
    @hegedusuk Před 2 lety

    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  Před 2 lety

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

  • @Sumguy21
    @Sumguy21 Před rokem +1

    I got 161283 digits of pi before it stopped scrolling

  • @Mythologos
    @Mythologos Před 2 lety +1

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

    • @intazoid
      @intazoid Před rokem

      🤭🤭

    • @priangsunath3951
      @priangsunath3951 Před 2 měsíci

      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??

  • @G7VFY
    @G7VFY Před 2 lety

    My Android calculator does not do this....

    • @CalculatorCulture
      @CalculatorCulture  Před 2 lety +14

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