#8750: numerical noise on solaris
-----------------------------+----------------------------------------------
Reporter: jhpalmieri | Owner: drkirkby
Type: defect | Status: needs_review
Priority: blocker | Milestone: sage-4.4
Component: solaris | Keywords:
Author: John Palmieri | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------+----------------------------------------------
Old description:
> I'm getting noise on doctests on Solaris. One is straightforward to fix
> (chmm.pyx). For the other (time_series.pyx), on Solaris I get
> {{{
> sage -t -long devel/sage/sage/finance/time_series.pyx
> **********************************************************************
> File "/home/palmieri/t2/sage-4.4.alpha2/devel/sage-
> main/sage/finance/time_series.pyx", line 691:
> sage: finance.TimeSeries([1,0,3]).log()
> Expected:
> [0.0000, -inf, 1.0986]
> Got:
> [0.0000, -Inf, 1.0986]
> **********************************************************************
> }}}
> So instead of {{{-inf}}}, it's printing {{{-Inf}}}. However, if I do
> {{{
> sage: finance.TimeSeries([1,0,3]).log()[1]
> }}}
> then I see {{{-inf}}}. So I've changed the doctest to use this instead.
>
> Oh, and actually reading the docstring, there is an optional argument
> {{{eps}}} which looks something like an error bound. By default it's set
> to 1e-12, and it looks to me like I've added the dots in the 12th place,
> so now I really don't have any problem with this change.
New description:
I'm getting noise on doctests on Solaris. One is straightforward to fix
(chmm.pyx). For the other (time_series.pyx), on Solaris I get
{{{
sage -t -long devel/sage/sage/finance/time_series.pyx
**********************************************************************
File "/home/palmieri/t2/sage-4.4.alpha2/devel/sage-
main/sage/finance/time_series.pyx", line 691:
sage: finance.TimeSeries([1,0,3]).log()
Expected:
[0.0000, -inf, 1.0986]
Got:
[0.0000, -Inf, 1.0986]
**********************************************************************
}}}
So instead of {{{-inf}}}, it's printing {{{-Inf}}}. However, if I do
{{{
sage: finance.TimeSeries([1,0,3]).log()[1]
}}}
then I see {{{-inf}}}. So I've changed the doctest to use this instead.
--
Comment(by jhpalmieri):
I accidentally added this to the description of the ticket instead of to
my reply about the change to chmm:
Oh, and actually reading the docstring, there is an optional argument eps
which looks something like an error bound. By default it's set to 1e-12,
and it looks to me like I've added the dots in the 12th place, so now I
really don't have any problem with this change.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8750#comment:4>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.