#6882: bugs in conversion of variable names from Maxima to Sage
---------------------------------+--------------------------
       Reporter:  was            |        Owner:  rws
           Type:  defect         |       Status:  needs_work
       Priority:  major          |    Milestone:  sage-6.3
      Component:  calculus       |   Resolution:
       Keywords:                 |    Merged in:
        Authors:                 |    Reviewers:
Report Upstream:  N/A            |  Work issues:
         Branch:                 |       Commit:
   Dependencies:  #8734, #16007  |     Stopgaps:
---------------------------------+--------------------------
Changes (by rws):

 * owner:  burcin => rws


Old description:

> {{{
> -----------
> sage: from sage.calculus.calculus import
> symbolic_expression_from_maxima_string
> sage: symbolic_expression_from_maxima_string('%i')
> I
> sage: symbolic_expression_from_maxima_string('i')
> I
> -----------
>
> So as you see, we are converting both '%i' and 'i' to  imaginary 'I' !!!!
> }}}
>
> See the sage-devel thread about this on Sept 3 for some discussion and
> motivation.

New description:

 {{{
 -----------
 sage: from sage.calculus.calculus import
 symbolic_expression_from_maxima_string
 sage: symbolic_expression_from_maxima_string('%i')
 I
 sage: symbolic_expression_from_maxima_string('i')
 I
 sage: symbolic_expression_from_maxima_string('%inf')
 Inf
 -----------

 So as you see, we are converting both '%i' and 'i' to  imaginary 'I' !!!!
 }}}
 The ticket should implement `multi_word_replace()` in
 `sage.misc.multireplace` and use that on a symtable with additional
 entries `'e':'_e', 'i':'_i', 'I':'_I'`.

--

Comment:

 At the moment we also get behaviour like
 {{{
 sage: symbolic_expression_from_maxima_string('%inf')
 Inf
 }}}
 so I think the ticket should implement `multi_word_replace()` in
 `sage.misc.multireplace` and use that on a symtable with additional
 entries `'e':'_e', 'i':'_i', 'I':'_I'`.

--
Ticket URL: <http://trac.sagemath.org/ticket/6882#comment:26>
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.

Reply via email to