当前位置: 首页>>代码示例>>Python>>正文


Python hyper.meijerg函数代码示例

本文整理汇总了Python中sympy.functions.special.hyper.meijerg函数的典型用法代码示例。如果您正苦于以下问题:Python meijerg函数的具体用法?Python meijerg怎么用?Python meijerg使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了meijerg函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_cse_not_possible

def test_cse_not_possible():
    # No substitution possible.
    e = Add(x, y)
    substs, reduced = cse([e])
    assert substs == []
    assert reduced == [x + y]
    # issue 6329
    eq = meijerg((1, 2), (y, 4), (5,), [], x) + meijerg((1, 3), (y, 4), (5,), [], x)
    assert cse(eq) == ([], [eq])
开发者ID:brajeshvit,项目名称:virtual,代码行数:9,代码来源:test_cse.py

示例2: test_cse_not_possible

def test_cse_not_possible():
    # No substitution possible.
    e = Add(x, y)
    substs, reduced = cse([e], optimizations=[])
    assert substs == []
    assert reduced == [x + y]
    # issue 3230
    eq = (meijerg((1, 2), (y, 4), (5,), [], x) + \
          meijerg((1, 3), (y, 4), (5,), [], x))
    assert cse(eq) == ([], [eq])
开发者ID:StefenYin,项目名称:sympy,代码行数:10,代码来源:test_cse.py

示例3: fdiff

 def fdiff(self, argindex):
     from sympy import meijerg
     nu, z = self.args
     if argindex == 1:
         return -z**(nu - 1)*meijerg([], [1, 1], [0, 0, 1 - nu], [], z)
     elif argindex == 2:
         return -expint(nu - 1, z)
     else:
         raise ArgumentIndexError(self, argindex)
开发者ID:Maihj,项目名称:sympy,代码行数:9,代码来源:error_functions.py

示例4: _shift

    def _shift(func, s):
        z = func.args[-1]
        if z.has(I):
            z = z.subs(exp_polar, exp)

        d = z.collect(x, evaluate=False)
        b = list(d)[0]
        a = d[b]

        t = b.as_base_exp()
        b = t[1] if t[0] is x else S(0)
        r = s / b
        an = (i + r for i in func.args[0][0])
        ap = (i + r for i in func.args[0][1])
        bm = (i + r for i in func.args[1][0])
        bq = (i + r for i in func.args[1][1])

        return a**-r, meijerg((an, ap), (bm, bq), z)
开发者ID:AlexanderKulka,项目名称:sympy,代码行数:18,代码来源:holonomic.py

示例5: _shift

    def _shift(func, s):
        z = func.args[-1]
        d = z.collect(x, evaluate=False)
        b = list(d)[0]
        a = d[b]

        if isinstance(a, exp_polar):
            a = exp(a.as_base_exp()[1])
            z = a * b

        t = b.as_base_exp()
        b = t[1] if t[0] is x else S(0)
        r = s / b
        an = (i + r for i in func.args[0][0])
        ap = (i + r for i in func.args[0][1])
        bm = (i + r for i in func.args[1][0])
        bq = (i + r for i in func.args[1][1])

        return a**-r, meijerg((an, ap), (bm, bq), z)
开发者ID:Carreau,项目名称:sympy,代码行数:19,代码来源:holonomic.py

示例6: _eval_rewrite_as_meijerg

 def _eval_rewrite_as_meijerg(self, m, **kwargs):
     return meijerg(((S.Half, S.Half), []), ((S.Zero,), (S.Zero,)), -m)/2
开发者ID:asmeurer,项目名称:sympy,代码行数:2,代码来源:elliptic_integrals.py

示例7: _eval_rewrite_as_meijerg

 def _eval_rewrite_as_meijerg(self, z):
     return meijerg(((S.Half, S.Half), []), ((S.Zero,), (S.Zero,)), -z)/2
开发者ID:Amo10,项目名称:Computer-Science-2014-2015,代码行数:2,代码来源:elliptic_integrals.py

示例8: _eval_rewrite_as_meijerg

 def _eval_rewrite_as_meijerg(self, z):
     return (pi*z**(S(3)/4) / (sqrt(2)*root(z**2, 4)*root(-z, 4))
             * meijerg([], [1], [S(1)/4], [S(3)/4, 0], -pi**2*z**4/16))
开发者ID:Maihj,项目名称:sympy,代码行数:3,代码来源:error_functions.py

示例9: test_sympy__functions__special__hyper__meijerg

def test_sympy__functions__special__hyper__meijerg():
    from sympy.functions.special.hyper import meijerg
    assert _test_args(meijerg([1, 2, 3], [4, 5], [6], [], x))
开发者ID:101man,项目名称:sympy,代码行数:3,代码来源:test_args.py


注:本文中的sympy.functions.special.hyper.meijerg函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。