-
-
Notifications
You must be signed in to change notification settings - Fork 703
Closed
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.
CC: @robert-marik
Component: calculus
Author: Ralf Stephan
Branch/Commit: 518de3e
Reviewer: Karl-Dieter Crisman
Issue created by migration from https://trac.sagemath.org/ticket/6882