You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 856b3cb
Browse filesBrowse the repository at this point in the historyBrowse files
One and a squared tangent are found anywhere in a sum (#2176)
1 + tan(x)^2 = sec(x)^2 and 1 + cot(x)^2 = csc(x)^2 are rules in
TrigonometricRules for two siblings, and the sort decides whether the 1
and the square are siblings. Secant sorts before tangent, so
1 + tan(x)^2 - sec(x)^2 became 1 - sec(x)^2 + tan(x)^2 and stayed, while
1 + cot(x)^2 - cosec(x)^2, where cotangent sorts before cosecant, was
0 provided not sin(x) = 0. #2142 has the pair.
Both identities are added to PythagoreanIdentity as gathered rules, as
that set already finds sin^2 + cos^2 wherever the two terms sit:
SoundUnderAssumptions as the sibling rules are, since each side is
defined only where cos (sin) is not 0, two-sided, reversible, Collects,
and each with its identity. The census moves by two in WritingARule.md,
Saturation's remark and the tests that pin them; ReversibleRuleTest's
hole-dropping check names the two Pythagorean rules rather than every
rule of the set, since these two keep their argument.
On 2.6.0 and on this branch, Simplify:
1 + tan(x)^2 - sec(x)^2 unchanged -> 0 provided not cos(x) = 0
a + 1 + tan(y)^2 - sec(y)^2 unchanged -> a provided not cos(y) = 0
Chain against master c90db9f: verdicts identical, 0 moves; performance
gate passed on all 19; unit suite 17,164 passed, 0 failed. RuleCheck
passes, Confluence and CanonCheck match their baselines, SimpSweep
10,463/10,463.
Part of #2142
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
0 commit comments