Skip to content

meijerint picks wrong branch for computing indefinite integrals of algebraic functions #2

@Ayush0Chaudhary

Description

@Ayush0Chaudhary
from sympy import *

f = x**-3 * (1 + x**4)**-Rational(1, 2)
F = integrate(f, x, meijerg=True)
print(F)

gives the result -sqrt(1 + x**(-4))/2 which does not equal to the integrand when differentiated

print(F.diff(x).xreplace({x: I}))
print(f.xreplace({x: I}))
-sqrt(2)*I/2
sqrt(2)*I/2

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions