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

Commit

Permalink
21819: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rwst committed Jan 6, 2017
1 parent 2fb1d2d commit be39e50
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sage/functions/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,3 +526,5 @@ def _derivative_(self, x, diff_param=None):

erfinv = Function_erfinv()

from sage.structure.sage_object import register_unpickle_override
register_unpickle_override('sage.functions.other', 'Function_erf', Function_erf)
1 change: 1 addition & 0 deletions src/sage/functions/other.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,6 +881,7 @@ def _eval_(self, x, y):
if x == 0:
return -Ei(-y)
if x == Rational(1)/2: #only for x>0
from sage.functions.error import erf
return sqrt(pi)*(1-erf(sqrt(y)))
return None

Expand Down

0 comments on commit be39e50

Please sign in to comment.