Hello,

> Hmmm... Didn't thought about this situation yet. Definitely we can't
> solve  this  problem  with  any  kind  of  regular  expressions. One
> possible  solution  is  to  round  data  before  printing.  So  both
> 1.00000000000001 and 0.99999999999999 will become 1.000000.

...however,  we still can have problems when rounding X=0.000499999 up
to  three  digits.  With  original  X  we  will  have  0.000. But with
perturbation as small as 0.000000002 we will round to 0.001.

My  automated  Python-ALGLIB  tests  just calculate difference between
desired  and  actual answers, but they are not doctests; they are just
automatically generated Python scripts. We can't calculate differences
with doctests.

-- 
With best regards,
 Sergey                          mailto:sergey.bochka...@alglib.net

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to