A hyperbolic function of a logarithm is integrated, the exponent folded structurally - #1470
Merged
Merged
Conversation
…ed structurally `tanh(ln(x))` was left as written. The library spells `tanh(y)` with `e^(2y)`, so a hyperbolic function of a logarithm is an exponential whose exponent is a sum holding one logarithm -- `e^(a + b ln(q))` -- and SolveByFoldingAnExponentialOfALogarithm read only a product, `e^(k ln q)`. It reads the exponent structurally now: `e^(u + v)` is `e^u e^v`, `e^(u - v)` is `e^u/e^v`, `e^(k u)` and `e^(u/d)` are powers of `e^u` for an x-free k and d, and `e^(ln q)` is `q`. So `a + b ln(c x^n)` folds to `e^a (c x^n)^b`, and its negation -- which the same function writes below the bar -- to the reciprocal of that. Two conditions, both measured. Composed exponents are flattened as they fold: `n (ln(q)/2)` is `q^(n/2)` and not `(sqrt(q))^n`, whose nesting made `e^(n acoth(a x))/(c - a^2 c x^2)^4` a search of fifty seconds where the flat form is declined in three. And one logarithm in the exponent: a difference of two -- how the inverse hyperbolic cotangent of a reciprocal arrives -- folds to a power of a quotient of quotients that nothing below reads. Family 6 of the Rubi suite: 375 -> 377 of 417, 0 wrong; family 7 215/270 and the 1774-problem suite 1707 unchanged. Suite 12632 passed; allocation gate passed on all 19 gated benchmarks. Part of #718. Co-Authored-By: Claude Opus 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.
tanh(ln(x))was left as written. The library spellstanh(y)withe^(2y), so a hyperbolic function of a logarithm is an exponential whose exponent is a sum holding one logarithm —e^(a + b ln(q))— andSolveByFoldingAnExponentialOfALogarithmread only a product,e^(k ln q).It reads the exponent structurally now:
e^(u + v)ise^u e^v,e^(u - v)ise^u/e^v,e^(k u)ande^(u/d)are powers ofe^ufor anx-freekandd, ande^(ln q)isq. Soa + b ln(c x^n)folds toe^a (c x^n)^b, and its negation — which the same function writes below the bar — to the reciprocal.Two conditions, both from measurements rather than taste:
n (ln(q)/2)isq^(n/2), not(sqrt(q))^n. The nested spelling is the same value and a different question to every rule below: with it,e^(n acoth(a x))/(c - a^2 c x^2)^4(family 7, 7.4.2:854) went from a 3 s decline to a 50 s search.Measured (final build, rebased onto
48d447c8):familycap.sh 6 20): 375 → 377/417, 0 wrong, timeouts 17 → 16 — 6.3.2:214x tanh(a + 2 ln x)^2and 6.5.3:253sech(a + 2 ln(c/sqrt x))^3; nothing lost.bench.sh: PASSED on all 19 gated benchmarks.Still declined, and deliberately:
sinh(a + b ln(c x^n))with a symbolicnandb, which needsint (c x^n)^b dx— that isc^b x^(n b + 1)/(n b + 1)only underc > 0andx > 0, a restriction on the variable rather than on a parameter, which deserves its own decision.BREAKING-CHANGES.mdcarries the entry with the 2.5.0 column measured on a 2.5.0 build.Part of #718.
🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura