Skip to content

Commit

Permalink
integrals: add test for sympygh-26571
Browse files Browse the repository at this point in the history
integrate((x**8+1)**(-1/2), x)
  • Loading branch information
oscarbenjamin committed May 7, 2024
1 parent 58d0281 commit d1eedd0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions sympy/integrals/tests/test_meijerint.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from sympy.testing.pytest import slow
from sympy.core.random import (verify_numerically,
random_complex_number as randcplx)
from sympy import nsimplify
from sympy.abc import x, y, a, b, c, d, s, t, z


Expand Down Expand Up @@ -763,6 +764,14 @@ def test_pr_23583():
Piecewise((acosh(x - I), Abs((x - I)**2) > 1), (-I*asin(x - I), True))


def test_meijerint_hyper_float():
# https://github.com/sympy/sympy/issues/26571
from sympy.integrals.meijerint import meijerint_indefinite
res = 0.125*x*gamma(S(1)/8)*hyper((0.5, S(1)/8), (S(9)/8,), x**8*exp_polar(I*pi))/gamma(S(9)/8)
assert meijerint_indefinite((x**8+1)**(-1/2), x) == res
assert meijerint_indefinite((x**8+1)**(-S(1)/2), x) == nsimplify(res)


# 25786
def test_integrate_function_of_square_over_negatives():
assert integrate(exp(-x**2), (x,-5,0), meijerg=True) == sqrt(pi)/2 * erf(5)
Expand Down

0 comments on commit d1eedd0

Please sign in to comment.