Hello, Jason. You wrote 5 августа 2010 г., 20:17:11: >> (depending on problem and its stability properties). However I don't >> know how to do it using doctest framework. Python tries to output >> numbers with full precision,and there is no way to tell doctest >> framework to compare decimal fractions using only N leading digits.
> Yes, there is. The doctest below will compare only the digits listed: > sage: maxima('asinh(1.0)') > 0.88137... Thanks! I didn't noticed this ELLIPSIS option while reading doctest's documentation. Everything becomes a bit simpler now :) -- 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