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

Commit

Permalink
Merge branch 'u/chapoton/30764' in 9.3.b4
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed Dec 15, 2020
2 parents c4a802d + c614f96 commit 8dc65e7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/sage/symbolic/function.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,8 @@ cdef class BuiltinFunction(Function):
import mpmath as module
custom = self._eval_mpmath_
elif all(isinstance(arg, float) for arg in args):
import math as module
if self._name != 'factorial': # delegated to gamma
import math as module
elif all(isinstance(arg, complex) for arg in args):
import cmath as module

Expand All @@ -1123,7 +1124,7 @@ cdef class BuiltinFunction(Function):
if callable(func):
try:
return func(*args)
except (ValueError,TypeError):
except (ValueError, TypeError):
pass

if custom is not None:
Expand Down

0 comments on commit 8dc65e7

Please sign in to comment.