Google's ingenious variable-precision Calculator app

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 พ.ย. 2024

ความคิดเห็น • 28

  • @bonez565
    @bonez565 2 ปีที่แล้ว +10

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

  • @jurjenbos228
    @jurjenbos228 2 ปีที่แล้ว +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.

    • @CalculatorCulture
      @CalculatorCulture  2 ปีที่แล้ว

      Thanks, yes that's a good point.

    • @Olejika_CheatEngine
      @Olejika_CheatEngine 2 ปีที่แล้ว

      It doesn't always work th-cam.com/video/2hhpJxjUVWA/w-d-xo.html

  • @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.

  • @big_badaboom
    @big_badaboom 2 ปีที่แล้ว +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 2 ปีที่แล้ว +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 2 ปีที่แล้ว +2

      @@john_hind Very interesting. Thanks for the link.

    • @CalculatorCulture
      @CalculatorCulture  2 ปีที่แล้ว +3

      @@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"

  • @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"

  • @finantra4511
    @finantra4511 6 หลายเดือนก่อน

    How to use memory function in this app

  • @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

  • @Mythologos
    @Mythologos 2 ปีที่แล้ว +1

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

    • @intazoid
      @intazoid ปีที่แล้ว

      🤭🤭

    • @priangsunath3951
      @priangsunath3951 4 หลายเดือนก่อน

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

  • @TheOnlyName
    @TheOnlyName ปีที่แล้ว +1

    ooh that's really cool!

  • @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.