-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sympy.integrate gives inconsistent results on a mathematically equivalent expression #26579
Comments
The result is coming from heurisch. It's too surprising heurisch sensitive to the input format. A good fix here would be to make powers of hyperbolic functions work in manualintegrate. The strategy should be similar to the one used for powers of regular trig functions. For example, Actually, I imagine quite a bit of manualintegrate's trig functionality could be extended to work with hyperbolic trig functions. |
If possible, hyperbolics can be recast to normal trig functions with the Osborne transformation (private functions in fu.py), simplified, and recast to hyperbolics before integration. |
Here is my code:
SymPy evaluates the first integral but it gives back the second one unevaluated.
The only difference is that the argument of the sinh in the first integral is written as
x / u + b / u
and in the second one as(x + b) / u
.sympy.__version__
returns1.12
I would expect that both expressions return the same result.
The text was updated successfully, but these errors were encountered: