1

When I want a numerical value with a precision of 50 digits...

N[1.15/(1 - E^-0.2)^2, 50]

Why is Mathematica not able to provide the desired solution?

enter image description here

And I know that this is irrational and the given solution is not precise and besides Mathematica would provide more digits even if the solution is already precise in other cases.

enter image description here

So what is the problem here and how can I get more digits?

Gab
  • 433
  • 3
  • 10
  • 1
    Start with exact or at least higher precision input. You have machine numbers in the input at present so you will not be able to get a (reliable) high precision result. – Daniel Lichtblau Apr 30 '14 at 16:09
  • Does this give you a hint: N[1.0, 50]? (1.0 is less precise than 1`50) Try: N[23/(20 (1 - 1/E^(1/5))^2), 50] – rm -rf Apr 30 '14 at 16:09
  • Alternatively, you could go to the Preferences dialog, Appearance tab, Numbers subtab, Formatting subtab, then change the "Number of digits displayed in output" to something larger than 6. This will give you more digits even with the machine precision input (although you will obviously run out of digits at some point due to the issues in the above comments). – KAI Apr 30 '14 at 16:15
  • Okay, guys, this solved my problem. I avoided the machine numbers and calculated N[(1 + 15/100)/(1 - E^(-(2/10)))^2, 50]. – Gab Apr 30 '14 at 16:17
  • Taking a look at the second example in the documentation for N would have answered your question. I'm voting to close. – RunnyKine Apr 30 '14 at 16:35

1 Answers1

5

You have to avoid machine numbers. Calculate

(1 + 15/100)/(1 - E^(-(2/10)))^2

and you will get the solution with an ad libitum precision.

enter image description here

Gab
  • 433
  • 3
  • 10