Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
6882: correction to previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rwst committed Jun 28, 2014
1 parent e5a5343 commit 4c1b0eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/sage/calculus/calculus.py
Original file line number Diff line number Diff line change
Expand Up @@ -1772,8 +1772,6 @@ def symbolic_expression_from_maxima_string(x, equals_sub=False, maxima=maxima):
-1
sage: ln(sefms('%e'))
1
sage: sefms('%inf')
+Infinity
"""
syms = sage.symbolic.pynac.symbol_table.get('maxima', {}).copy()

Expand Down Expand Up @@ -1820,6 +1818,7 @@ def symbolic_expression_from_maxima_string(x, equals_sub=False, maxima=maxima):

s = s.replace("#","!=") # a lot of this code should be refactored somewhere...

s = polylog_ex.sub('polylog(\\1,',s)
s = maxima_polygamma.sub('psi(\g<1>,',s) # this replaces psi[n](foo) with psi(n,foo), ensuring that derivatives of the digamma function are parsed properly below

if equals_sub:
Expand Down

0 comments on commit 4c1b0eb

Please sign in to comment.