Suppose we have run a calculation and get a number like
If we then copy-paste this number and do a calculation like
Mathematica will give a red 0. and an error about no significant digits. Why does this happen (note:putting a "`" on the 1 fixes the problem, so perhaps I am mixing different types of numbers?)
Even more worrisome to me, is that perhaps my calculations in some long program will be messed up from such an issue.
Is there a global setting that I can change (for example, at the top of a document or something), so that mathematica can properly do such calculations (with some "acceptable" amount of error?
I realize that if I instead do
Mathematica will do the calculation. I also realize that this is an issue with precision.
However, I have tried reading the documentation and some questions on this site, and I don't understand either 1) What the issue is, 2) Whether I can globally set precision so that such calculations work out with some acceptable amount of error.
For example, I believe using
N as above, means mathematica uses machine precision. Is this machine precision good though? Or bad? I tried reading through the documentation and I can't figure it out.
I realize that there are questions about this on the site, and that mathematica has documentation on this, but honestly I cannot understand it well. So here I am specifically looking for if someone can explain how I can deal with this, in a more simple manner
Edit: One more thing. The help documentation here makes me think arbitrary precision numbers are better (since it talks about arbitrary precision numbers maintaining a pertaining number of correct digits, and machine precision numbers needed to be checked for correctness). If that is the case though, how come arbitrary precision numbers don't work in the simple example, but using
N for machine precision does?