#15970: j_invariant_qexp won't allow substitution
-------------------------------------------------+-------------------------
Reporter: katestange | Owner:
Type: defect | Status: new
Priority: minor | Milestone: sage-6.2
Component: number theory | Resolution:
Keywords: j-invariant, laurent series, | Merged in:
q-expansion, substitution | Reviewers:
Authors: | Work issues:
Report Upstream: N/A | Commit:
Branch: | Stopgaps:
Dependencies: |
-------------------------------------------------+-------------------------
Comment (by fwclarke):
The change was made in #3979. Until Sage 5.4, substitution into power
series was incorrectly implemented in many ways. In particular, it was
possible to substitute a non-zero scalar into a series only specified up
to a given precision, but this cannot make sense.
In your case,
{{{
sage: jq = j_invariant_qexp(10)
sage: jq.truncate(10)(exp(-2*pi)).n(100)
1727.9999999999882175423506871
}}}
gives the answer you want. But its meaning depends on assuming
(correctly) that the infinitely many unspecified terms can be ignored (to
within 10^-10^).
In general, writing, say,
{{{
f = x + x^2 + O(x^3)
}}}
tells us nothing about how `f(2)` should be defined, or whether `6` might
be a reasonable approximation.
--
Ticket URL: <http://trac.sagemath.org/ticket/15970#comment:1>
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.