this post was submitted on 26 Dec 2024
221 points (98.3% liked)

Asklemmy

44173 readers
2500 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_A@discuss.tchncs.de~

founded 5 years ago
MODERATORS
 

How about ANY FINITE SEQUENCE AT ALL?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Yoddel_Hickory@lemmy.ca 42 points 1 day ago (7 children)

This is what allows pifs to work!

[โ€“] Arfman@aussie.zone 3 points 20 hours ago (1 children)

I'm a layman here and not a mathematician but how does it store the complete value of pi and not rounded up to a certain amount? Or do one of the libraries generate that?

[โ€“] lukewarm_ozone@lemmy.today 7 points 18 hours ago

You generate it when needed, using one of the known sequences that converges to ฯ€. As a simple example, the pi() recipe here shows how to compute ฯ€ to arbitrary precision. For an application like pifs you can do even better and use the BBP formula which lets you directly calculate a specific hexadecimal digit of ฯ€.

load more comments (5 replies)