#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: |
----------------------------+-----------------------------------------------
Comment(by robert.marik):
And anther issue which I do not understand:
{{{
----------------------------------------------------------------------
| Sage Version 4.3.3, Release Date: 2010-02-21 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
Loading Sage library. Current Mercurial branch is: polylog
sage: g(x)=integrate(ln(1-x^2)/x,x)
sage: g(1/2).n()
---------------------------------------------------------------------------
TypeError Traceback (most recent call
last)
/opt/sage-4.3.3/<ipython console> in <module>()
/opt/sage-4.3.3/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: g(x)=eval(preparse(integrate(ln(1-x^2)/x,x)._repr_()))
sage: g(1/2).n()
0.688640713882747
sage: g
x |--> log(-x^2 + 1)*log(x) + 1/2*polylog(2, -x^2 + 1)
sage:
}}}
why are eval and _repr_ necessary?
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8459#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 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.