Skip to content

Commit

Permalink
Merge pull request #13558 from ashishkg0022/meijerg
Browse files Browse the repository at this point in the history
added is_number property for meijerg
  • Loading branch information
jksuom committed Nov 4, 2017
2 parents 36d9c85 + f62afe1 commit 57f80ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sympy/functions/special/hyper.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,11 @@ def delta(self):
c.f. references. """
return len(self.bm) + len(self.an) - S(len(self.ap) + len(self.bq))/2

@property
def is_number(self):
""" Returns true if expression has numeric data only. """
return not self.free_symbols


class HyperRep(Function):
"""
Expand Down
3 changes: 3 additions & 0 deletions sympy/functions/special/tests/test_hyper.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ def test_meijer():
assert g.nu == 75
assert g.delta == -1
assert g.is_commutative is True
assert g.is_number is False
#issue 13071
assert meijerg([[],[]], [[S(1)/2],[0]], 1).is_number is True

assert meijerg([1, 2], [3], [4], [5], z).delta == S(1)/2

Expand Down

0 comments on commit 57f80ff

Please sign in to comment.