#8459: broken translatin of polylog from Maxima
----------------------------+-----------------------------------------------
Reporter: robert.marik | Owner: burcin
Type: defect | Status: needs_review
Priority: major | Milestone:
Component: symbolics | Keywords: symbolics
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
----------------------------+-----------------------------------------------
Old description:
> Maixma's li[2](x) translates to polylog2(x) which is not defined in Sage
> {{{
> sage: maxima('li[1](x)').sage().subs(x=2).n()
> -3.14159265358979*I
> sage: maxima('li[2](x)').sage().subs(x=2).n()
> ---------------------------------------------------------------------------
> TypeError Traceback (most recent call
> last)
>
> /opt/sage-4.3.3-i686-Linux/<ipython console> in <module>()
>
> /opt/sage/local/lib/python2.6/site-packages/sage/symbolic/expression.so
> in sage.symbolic.expression.Expression.n
> (sage/symbolic/expression.cpp:17036)()
>
> TypeError: cannot evaluate symbolic expresssion numerically
>
> sage: f(x)= integrate(log(1-x^2)/x, x); f(2).n()
> ---------------------------------------------------------------------------
> TypeError Traceback (most recent call
> last)
>
> /opt/sage-4.3.3-i686-Linux/<ipython console> in <module>()
>
> /opt/sage/local/lib/python2.6/site-packages/sage/symbolic/expression.so
> in sage.symbolic.expression.Expression.n
> (sage/symbolic/expression.cpp:17036)()
>
> TypeError: cannot evaluate symbolic expresssion numerically
>
> }}}
>
> patch comes soon
New description:
Maixma's li[2](x) translates to polylog2(x) which is not defined in Sage
{{{
sage: maxima('li[1](x)').sage().subs(x=2).n()
-3.14159265358979*I
sage: maxima('li[2](x)').sage().subs(x=2).n()
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
/opt/sage-4.3.3-i686-Linux/<ipython console> in <module>()
/opt/sage/local/lib/python2.6/site-packages/sage/symbolic/expression.so in
sage.symbolic.expression.Expression.n
(sage/symbolic/expression.cpp:17036)()
TypeError: cannot evaluate symbolic expresssion numerically
sage: f(x)= integrate(log(1-x^2)/x, x); f(2).n()
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
/opt/sage-4.3.3-i686-Linux/<ipython console> in <module>()
/opt/sage/local/lib/python2.6/site-packages/sage/symbolic/expression.so in
sage.symbolic.expression.Expression.n
(sage/symbolic/expression.cpp:17036)()
TypeError: cannot evaluate symbolic expresssion numerically
sage: maxima('li[2](x)').sage()
polylog2(x)
sage: polylog2?
Object `polylog2` not found.
}}}
patch comes soon
--
Comment(by robert.marik):
[http://groups.google.cz/group/sage-
support/browse_thread/thread/d1ef50cd207e0f76 sage-support] question
concerning the problem above
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8459#comment:3>
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.