#3401: extend li to work with complex input
---------------------------+------------------------------------------------
Reporter: was | Owner: gfurnish
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-4.3.1
Component: calculus | Keywords:
Work_issues: | Author: Michael Yurko
Upstream: N/A | Reviewer: Mike Hansen, Karl-Dieter Crisman,
Burcin Erocal
Merged: |
---------------------------+------------------------------------------------
Changes (by burcin):
* status: positive_review => needs_work
* reviewer: Mike Hansen, Karl-Dieter Crisman => Mike Hansen, Karl-Dieter
Crisman, Burcin Erocal
Comment:
Sorry to come in this late to the discussion, but this needs more work.
The `prec` argument to symbolic functions is deprecated, adding it to `Li`
now doesn't make sense.
{{{
sage: gamma(10,prec=100)
.../_home_burcin__sage_init_sage_0.py:1: DeprecationWarning: The prec
keyword argument is deprecated. Explicitly set the precision of the input,
for example gamma(RealField(300)(1)), or use the prec argument to .n() for
exact inputs, e.g., gamma(1).n(300), instead.
# -*- coding: utf-8 -*-
362880.00000000000000000000000
}}}
You can get the precision from the argument provided by the user. If the
user needs a higher precision, they should explicitly convert the argument
to a higher precision, for example by using `RealFiel(300)(val)`.
We should also start converting these to proper symbolic functions that
remain symbolic on exact input, but that can be left to another ticket.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/3401#comment:10>
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.