Example #1
0
    def eval(cls, ap, bq, z):
        from sympy import unpolarify

        if len(ap) <= len(bq):
            nz = unpolarify(z)
            if z != nz:
                return hyper(ap, bq, nz)
Example #2
0
def _prep_tuple(v):
    """
    Turn an iterable argument V into a Tuple and unpolarify, since both
    hypergeometric and meijer g-functions are unbranched in their parameters.

    Examples:
    >>> from sympy.functions.special.hyper import _prep_tuple
    >>> _prep_tuple([1, 2, 3])
    (1, 2, 3)
    >>> _prep_tuple((4, 5))
    (4, 5)
    >>> _prep_tuple((7, 8, 9))
    (7, 8, 9)
    """
    from sympy.simplify.simplify import unpolarify
    return TupleArg(*[unpolarify(x) for x in v])
Example #3
0
File: hyper.py Project: Maihj/sympy
def _prep_tuple(v):
    """
    Turn an iterable argument V into a Tuple and unpolarify, since both
    hypergeometric and meijer g-functions are unbranched in their parameters.

    Examples:
    >>> from sympy.functions.special.hyper import _prep_tuple
    >>> _prep_tuple([1, 2, 3])
    (1, 2, 3)
    >>> _prep_tuple((4, 5))
    (4, 5)
    >>> _prep_tuple((7, 8, 9))
    (7, 8, 9)
    """
    from sympy.simplify.simplify import unpolarify
    return Tuple(*[unpolarify(x) for x in v])
Example #4
0
 def eval(cls, ap, bq, z):
     from sympy import unpolarify
     if len(ap) <= len(bq):
         nz = unpolarify(z)
         if z != nz:
             return hyper(ap, bq, nz)