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.
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
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.
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".
@@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"
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?
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??
That's a neat feature. It works on my phone as well (note 10+, android 12)
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.
Thanks, yes that's a good point.
It doesn't always work czcams.com/video/2hhpJxjUVWA/video.html
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
Partly yes. Python uses bignums for integer arithmetic but floating point calculations use 64-bit double-precision values.
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.
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".
@@john_hind Very interesting. Thanks for the link.
@@john_hind thanks! I added the link to the video description.
Maybe it just calculates it as you go, whenever it needs more precision.
@@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"
Perhaps also of interest, for the command line, Simon Tatham's "spigot: an exact real calculator" but see the section "Hazards to computation"
Thanks, I'll check it out.
ooh that's really cool!
How to use memory function in this app
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?
I was thinking of Hipercalc hiperdevelopment.wixsite.com/hipercalc
I got 161283 digits of pi before it stopped scrolling
Extra features you didn't mention: 25 trackers + Adware!
🤭🤭
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??
My Android calculator does not do this....
You might have an OEM calculator app, eg the Samsung one? You can get the Google Calculator from the Play Store.