Calculator with LOTS of decimals

  • Thread starter Usaf Moji
  • Start date
  • #1
72
0
Hi, I'm trying to do some caculations involving numbers with big differences in their orders of magnitude. Unfortunately, all the cacluclating tools I can find always round off the answers too much to be of any use to me.

For example, if I type 4.5 x 10-12 - (4.5 x 10-12 - 9.2 x 10 -30) I want a calculator that will give me 9.2 x 10 -30. But all the calculators I've used give me 0 due to unwanted rounding during the calculation. Even Python does this.

Does anyone know where I could get a calculator or program that can do the calculation I need? I would prefer something with a simple interface resembling a hand-held calculator (like what Python uses) rather than something that requires any kind of programming.

Thanks.
 

Answers and Replies

  • #2
rock.freak667
Homework Helper
6,230
31
I think most scientific calculators will give you that answer assuming that you use the exp. button.
 
  • #3
stewartcs
Science Advisor
2,177
3
Hi, I'm trying to do some caculations involving numbers with big differences in their orders of magnitude. Unfortunately, all the cacluclating tools I can find always round off the answers too much to be of any use to me.

For example, if I type 4.5 x 10-12 - (4.5 x 10-12 - 9.2 x 10 -30) I want a calculator that will give me 9.2 x 10 -30. But all the calculators I've used give me 0 due to unwanted rounding during the calculation. Even Python does this.

Does anyone know where I could get a calculator or program that can do the calculation I need? I would prefer something with a simple interface resembling a hand-held calculator (like what Python uses) rather than something that requires any kind of programming.

Thanks.
The calculator that comes with Windows can do it.

CS
 
  • #4
72
0
The calculator that comes with Windows can do it.

CS
Hey, you're right! Thanks!
 
  • #5
1,056
0
You can use, for free, PARI, the package for number theory. Just look it up on the internet. Normally the program I use goes to 28 decimal places. A little secret here, found in the tutorial is to use \pX to get X places of precision. You can set that for X=50, or X=500 for that matter.

However in the example you gave, depending upon the brackets, it sometimes insists on giving 9.1 followed by a long string of 9s. Even for 500 places its off at the last 7 giving 615927*10^-30.
 
  • #6
CRGreathouse
Science Advisor
Homework Helper
2,820
0
I second the Pari recommendation.

Code:
(15:02)(1+1e-20)^2-1-2e-20
%5 = 9.99999984 E-41
Code:
(15:02)\p 1000
   realprecision = 1001 significant digits (1000 digits displayed)
(15:02)(1+1e-400)^2-1-2e-400
%6 = 9.9999999999999999999999999999999999999999999999999999999999999999999999999
99999999999999999999999999999999999999999999999999999999999999999999999999999999
99999999999999999999999999999999999999999999999999999999999999999999999999999999
99999999999999999999999999999999999999999999999999999999999999999999999999999999
99999999999999999999999999999999999999999999999999999999999999999999999999999999
99999999999999999999999999999999999999999999999999999999999999999999999999999999
99999999999999999999999999999999999999999999999999999999999999999999999999999999
99999999999999999999999999999999999999999999999526402 E-801
 

Related Threads on Calculator with LOTS of decimals

Replies
6
Views
2K
  • Last Post
Replies
3
Views
718
Replies
3
Views
10K
Replies
9
Views
1K
Replies
1
Views
1K
Replies
7
Views
2K
Replies
7
Views
675
  • Last Post
Replies
8
Views
6K
Replies
6
Views
3K
Top