Open GoogleCodeExporter opened 9 years ago
Instead of a flag, perhaps as a special character, say mpi('1.2*')?
Original comment by fredrik....@gmail.com
on 12 Mar 2009 at 8:59
This is indeed better. But maybe it's somewhat cryptic?
1.23e-34* and 1.23*e-34 are ugly. I'd prefer a character that doesn't
correspond to
an arithmetic operation.
Original comment by Vinzent.Steinberg@gmail.com
on 12 Mar 2009 at 10:21
It would be possible to use the standard notation for uncertainty, 1.20(5).
Original comment by fredrik....@gmail.com
on 13 Mar 2009 at 8:25
Also '1.2?' is an option.
Original comment by fredrik....@gmail.com
on 13 Mar 2009 at 8:32
Current behaviour:
>>> mpmathify('1.23(4)')
mpi(mpf('-2.77'), mpf('5.2300000000000004'))
>>> mpmathify('1.23+-4')
mpi(mpf('-2.77'), mpf('5.2300000000000004'))
I'm not aware of the standard notation 1.20(5). What does it mean?
'1.2#' might be an option too.
Original comment by Vinzent.Steinberg@gmail.com
on 16 Mar 2009 at 6:04
It's standard in chemistry and at least very common in some some branches of
physics
(e.g. subatomic physics). See
http://en.wikipedia.org/wiki/Measurement_uncertainty
Original comment by fredrik....@gmail.com
on 16 Mar 2009 at 6:11
Thank you!
So our current implementation is wrong. I like this notation, let's implement
it.
It's in my opinion better than a special character. And it won't be confused
with
1.23(2.3%), I think.
(BTW, I just stumbled upon this notation when searching for atomic masses of
some
isotopes. :)
Original comment by Vinzent.Steinberg@gmail.com
on 16 Mar 2009 at 6:27
BTW, I think Sage uses 1.23? at least for printing intervals. If any special
character should be used, that might be it.
Original comment by fredrik....@gmail.com
on 16 Mar 2009 at 6:32
Original issue reported on code.google.com by
Vinzent.Steinberg@gmail.com
on 11 Mar 2009 at 7:44