Repository navigation
Ask a hyperbolic integrand as a trigonometric one - #1961
Merged
Rafael-SOWNet merged 1 commit intoOct 20, 2026
Merged
Conversation
The parser writes the hyperbolic functions as exponentials, so the trigonometric rules never read them. `(b cosh(x) + c sinh(x) + sqrt(b^2 - c^2))^(1/2)` was declined where `(b cos(x) + c sin(x) + sqrt(b^2 + c^2))^(1/2)` is answered at once. By Osborn's rule, with L = i s, cosh(L) is cos(s), sinh(L) is i sin(s) and dx = i ds/b, and the question in s is one the trigonometric rules answer. The answer is written back with s = -i L and checked at sampled points, so a branch that holds for a real s but differs on the imaginary axis is declined. The rule only applies where every exponential of x is a whole power of one e^L and x appears nowhere else. It is asked of the question asked only, and after every rule in x. Asked early, the question in s, which is slow to decline, took the budget from rules that answer `x/cosh(x)^(7/2) + 3/5 x sqrt(cosh(x))` and its neighbours at once. Rubi's 6.5.3, 6.6.3 and 6.7.1. Part of #233. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The parser writes the hyperbolic functions as exponentials, so the trigonometric rules never read them:
(b cosh(x) + c sinh(x) + sqrt(b^2 - c^2))^(1/2)was declined where(b cos(x) + c sin(x) + sqrt(b^2 + c^2))^(1/2)is answered at once.The rule uses Osborn's rule. With
L = i s,cosh(L) = cos(s),sinh(L) = i sin(s)anddx = i ds/b, and the trigonometric rules answer the question ins. The answer is written back withs = -i Land checked against the integrand at sampled points. A branch that holds for a realsand differs on the imaginary axis is declined.The rule fires only where:
e^L;A first version was asked early and allowed x beside the exponentials. It answered 46 problems and cost 11 that master answers, because the question in
sis slow to decline and took the budget from rules that answerx/cosh(x)^(7/2) + 3/5 x sqrt(cosh(x))and the like at once. This version is the one measured below.Measured on
8a1ef454, branch against master:Re-run alone on both builds, 30 of the 38 problems that moved go from declined or timed out to answered: 27 in 6.7.1, two in 6.5.3 and one in 6.6.3. None goes the other way. The two-row drop in families 3 and 7 is the problems that time out on both builds when re-run alone. One problem reads wrong on both builds: 6.1.5:94, #1944, an evaluator defect.
AHyperbolicIntegrandAsATrigonometricOneIntegralTestdifferentiates the answers back. It also checks that the rules in x keep the problems the first version took from them.BREAKING-CHANGES.mdhas the entry, with the 2.5.0 column measured on v2.5.0.Part of #233.
🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura