Repository navigation
A rational function of the secant with two sums below the bar is written in the cosine - #1824
Merged
Rafael-SOWNet merged 1 commit intoOct 8, 2026
Conversation
…ten in the cosine The half-angle substitution read the secant's spelling into a rational function of the half-angle tangent that a substitution search expanded past thirty seconds; as one quotient in the cosine it is answered in a second. Only where two sums in the secant stand below the bar and none above. Part of #718. 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.
Part of #718.
sec(e + f x)/((a + b sec(e + f x)) (c + d sec(e + f x))^2)ran past thirty seconds, with two more of Rubi's 4.5.2.3, wherecos(x)^2/((a cos(x) + b) (c cos(x) + d)^2), the same function, is answered in half of one. A sample of the stack showedSolveByHalfAngleSubstitutionreading the secant's spelling into a rational function of the half-angle tangent, and a substitution search under it expanding that without end.SolveByWritingARationalFunctionOfTheSecantInTheCosine, ahead of Bioche's substitutions and the half angle, writes a rational function of the secant of one argument, or the cosecant, in the cosine as one quotient and asks the same question.Only where two sums in the secant stand below the bar and none above. Written so wherever the secant stands alone, it was measured on all 6,489 corpus problems with a secant or a cosecant in them and lost 51 that master answers --
sec(c + d x)^5/(a + b sec(c + d x))^3and its like, which the secant's own rules answer in half a second and the cosine's spelling sends past five -- for 6 gained.1ea1f8acsec(x)/((a + b sec(x)) (c + d sec(x))^2)sec(x)/((a + b sec(x))^2 (c + d sec(x)))The answers carry a case for each sign of two discriminants, which is most of their length.
Tests:
ARationalFunctionOfTheSecantInTheCosineIntegralTest, the two rows above, each differentiated back and compared at six points.Measured on every corpus problem with a secant or a cosecant in its integrand, 6,489 of them, at the corpus's 5-second budget, against master
1ea1f8ac:Six problems are answered here and not on master -- three of 4.5.2.3, two of 4.5.4.2 and one of 4.7.7 -- and none the other way; on the 6,330 both answer the time is 1,927 seconds and 1,921.
The harness counts no answer wrong in either. The six problems the builds disagreed on, run again one build at a time: master answers none, this all six.
The suite passes: 15,162 passed, 13 skipped, none failed, on the change before its test was added; with it, the secant, Bioche and half-angle tests pass, 354. The allocation gate passes: every gated benchmark allocates what the baseline says. The library builds for every target.
🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura