#6882: bugs in conversion of variable names from Maxima to Sage
-------------------------------------+-------------------------------------
       Reporter:  was                |        Owner:  rws
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.3
      Component:  calculus           |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Ralf Stephan       |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/rws/bugs_in_conversion_of_variable_names_from_maxima_to_sage|  
518de3e62533cd209997107f903192f1a31d118c
   Dependencies:                     |     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'`.
>
> 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.

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 a multi word replace 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:33>
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