Calculating constants to high precision

In summary, the conversation discussed the need for a fast and efficient program to calculate simple constants to high precision. One person offered to email their program to the others, while another mentioned using different calculation methods to ensure accuracy. However, there were some discrepancies and issues with the program's results, causing confusion and prompting further investigation.
  • #1
CRGreathouse
Science Advisor
Homework Helper
2,844
0
I'm trying to calculate some simple constants to high precision -- a few tens of millions of decimal places, maybe even a few hundred million. Are there any good programs out there that are fast at doing this? I'm using PARI/GP right now, but it's taking quadratic time to calculate ln(2), which means it would take a year or so to get 100M decimals, which exceeds my patience by about 11-1/2 months.

Any thoughts? If I have to program it myself, what's the best way to go about doing that -- in a program like pari, with a package like GMP, or straight-up in C or something similar?
 
Mathematics news on Phys.org
  • #2
Actually i have a very efficient program that I would be happy to email to you if you gave me your address. Simple constants, 100m digits, at MOST an hour on a 3ghz computer.
 
Last edited:
  • #3
Gib Z said:
Actually i have a very efficient program that I would be happy to email to you if you gave me your address. Simple constants, 100m digits, at MOST an hour on a 3ghz computer.
can you please mail that to me too. my e-mail address is murshid_islam@yahoo.com

thanks in advance. i have been trying to find such a program myself for some time now.
 
  • #4
I PM'd you my email address.
 
  • #5
K guys I've sent it, tell me how it goes.
 
  • #6
Gib Z said:
K guys I've sent it, tell me how it goes.

I got it, thanks.

I'm not sure if it's correct, though. I'm having trouble figuring it out -- when I compared it to a trusted value of ln(2) from my hard drive (generated by pari), the two matched for the first 1,000,005 decimal places but differed thereafter. Wha...?

Also, when I searched for the section that differed between the two (starting 23172815271166), I found it in my 'trusted' file of pi. It starts at 1,000,006 in the qpi version but 2,000,016 in the pari version. This is a very unusual error and I can't figure it out. I'm especially confused by the repetition and the roundness of the numbers.

Further, http://www.research.att.com/~njas/sequences/A098289 [Broken] seems to back up the pari version, as 2518028 appears in the position predicted by A098289(20) in the pari version but 4,000,000 off in the qpi version. I'm a bit confused.
 
Last edited by a moderator:
  • #7
hmm...im actually not so sure about this, I never noticed...I merely used the program as a benchmark tool for my computer, not for the actual digits...Im sorry about the trouble then...maybe you could try the computation with different methods? instead of the default chudnovsky, try machin, borwein or ramanujan, theyre quite reliable.
 
  • #8
Gib Z said:
hmm...im actually not so sure about this, I never noticed...I merely used the program as a benchmark tool for my computer, not for the actual digits...Im sorry about the trouble then...maybe you could try the computation with different methods? instead of the default chudnovsky, try machin, borwein or ramanujan, theyre quite reliable.

I'll look into it. I wonder if it might be a problem in the postprocessing, though, rather than in the calculation itself.
 

1) What is the purpose of calculating constants to high precision?

Calculating constants to high precision allows scientists to have more accurate and reliable data for their experiments and theories. It also helps to improve our understanding of the fundamental laws of nature.

2) How do scientists calculate constants to high precision?

Scientists use a combination of theoretical models and experimental measurements to calculate constants to high precision. This involves using advanced mathematical techniques and sophisticated equipment to minimize errors and increase accuracy.

3) What are some examples of constants that are calculated to high precision?

Some examples of constants that are calculated to high precision include the speed of light, the gravitational constant, and the Planck constant. These constants play important roles in various fields of science, such as physics, chemistry, and astronomy.

4) What challenges do scientists face when calculating constants to high precision?

One of the main challenges in calculating constants to high precision is reducing sources of error in both the theoretical and experimental aspects of the process. This requires careful consideration of factors such as measurement techniques, equipment limitations, and uncertainties in the underlying theories.

5) How do high-precision constants contribute to scientific advancements?

High-precision constants are essential for making accurate predictions, designing experiments, and testing theories. They also serve as a benchmark for detecting any discrepancies or limitations in existing theories, which can lead to new discoveries and advancements in scientific understanding.

Similar threads

  • Programming and Computer Science
Replies
4
Views
2K
Replies
1
Views
2K
Replies
5
Views
855
  • STEM Academic Advising
Replies
8
Views
781
  • Programming and Computer Science
Replies
2
Views
2K
Replies
6
Views
1K
Replies
13
Views
2K
  • Science Fiction and Fantasy Media
4
Replies
112
Views
14K
  • Beyond the Standard Models
Replies
18
Views
3K
Back
Top