#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:
---------------------------------+--------------------------
Description changed by 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
> 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'`.
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'`.
We do not want to be surprised when some new Maxima variable starting %i
is introduced. At the moment it's really just a string replace from %i to
I, without sense of word boundaries.
--
--
Ticket URL: <http://trac.sagemath.org/ticket/6882#comment:29>
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.