#18595: Big Oh terms and equality
--------------------------------------------+------------------------
Reporter: behackl | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.8
Component: commutative algebra | Resolution:
Keywords: powerseries, asymptotics | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
--------------------------------------------+------------------------
Comment (by nbruin):
It is not clear to me why the behaviour illustrated in the ticket is not
desirable. It is certainly consistent with p-adics and with arithmetic:
{{{
sage: PSR.<x> = PowerSeriesRing(ZZ)
sage: a=x
sage: b=a+O(x^2)
sage: (a-b).is_zero()
True
sage: a==b
True
}}}
so changing the current behaviour would also require that `O(x^2) != 0`.
Also, checking whether an O-term is present is quite straightforward:
{{{
sage: (x+O(x^2)).precision_absolute()
2
sage: (x).precision_absolute()
+Infinity
}}}
I'd think close as Invalid. Please comment if you think otherwise.
--
Ticket URL: <http://trac.sagemath.org/ticket/18595#comment:2>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.