I thought that 3e1 is completely equivalent to 30. However, it is not:
Then I thought that 3e1 is always 53-bit real number or something like that. But I was wrong again:
Now I am just confused. Is this a bug? If not, how should I understand the second input above, and where can I find it documented? (Sage 5.0)
asked Jun 01 '12kkumer
96 ● 2 ● 4 ● 6
Does this answer it?
In your first thing, you're approximating a rational arbitrarily. In the second, you're approximating the (default 53 bit, I think you're right) "real" number closest to 1/30 with garbage after that many bits, as you suspect.
But in the last one you are doing the same as this, more or less:
which seems appropriate to me, since 30 can be represented exactly in binary, but 1/30 can't.
posted Jun 01 '12kcrisman
7427 ● 17 ● 76 ● 166
Asked: Jun 01 '12
Seen: 126 times
Last updated: Jun 01 '12
powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.