Changes between Initial Version and Version 1 of Ticket #16732


Ignore:
Timestamp:
07/29/14 19:52:07 (5 years ago)
Author:
nbruin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16732 – Description

    initial v1  
    55psi[x](y)
    66}}}
    7 The conversion doesn't seem to completely recurse on the first argument, though:
     7The conversion doesn't seem to recurse on either argument, though:
    88{{{
    99sage: maxima_calculus(psi(psi(x,y),y))
    1010psi[psi(x,y)](y)
     11sage: maxima_calculus(psi(x,psi(x,y)))
     12psi[x](psi(x,y))
    1113}}}
    12 (note that the inner psi does not have the square brackets)
     14(note that the inner psi does not have the square brackets in either case.)
     15Perhaps even worse:
     16{{{
     17sage: maxima_calculus(psi(x,polylog(3,x)))
     18psi[x](polylog(3,x))
     19sage: maxima_calculus(polylog(3,x))
     20li[3](x)
     21}}}
     22As you see, the polylog doesn't get translated properly! This indicates misimplemented `_maxima_init_evaled_`, and probably those occur in several spots. Perhaps the way `_maxima_init_evaled_` gets called by the translator needs amendment? (the arguments need processing). The problem seems to occur in [http://git.sagemath.org/sage.git/tree/src/sage/functions/special.py#n502 sage/functions/special.py line 502], where the arguments are apparently fed raw into `_maxima_init_evaled_` and where `_maxima_init_evaled_` is usually implemented as some basic string manipulation.
     23
    1324
    1425Round-tripping only works for completely numeric first arguments (as per how the responsible regexp is designed):