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 c90db9f
Browse filesBrowse the repository at this point in the historyBrowse files
A squared sine and cosine with one coefficient are found anywhere in a sum (#2175)
The gathered Pythagorean rule matches sin(x)^2 and cos(x)^2 wherever they
sit in a sum, but only with a coefficient of one. With a coefficient the
pair was left to SharedFactor, which sees two siblings, so the sort
decided: y + (-2) cos(x)^2 + (-2) sin(x)^2 came out y - 2, and
2 + (-2) cos(x)^2 + (-2) sin(x)^2, where the constant sorts between the
two, stayed. #2133's 2 + (-2) cos(2x) + (-4) sin(x)^2 opens to that and
stopped there, while 2 - 2 cos(2x) - 4 sin(x)^2 reached 0.
squared-sine-and-cosine-with-one-coefficient-sum-to-it gathers
k sin(x)^2 and k cos(x)^2 of one argument and one coefficient and writes
k: Sound for every complex k and x, two-sided, Collects, and with no
backwards reading, since it forgets the angle as the first rule does. The
census moves by one in WritingARule.md, Saturation's remark and the tests
that pin them; ReversibleRuleTest asks every rule of the set instead of
Single().
(cos(2x) - 1)^2 + sin(2x)^2 - 4 sin(x)^2 still stops at
2 + (-2) cos(2x) + (-4) sin(x)^2, which one more Simplify now takes to 0:
that is #2133's main point, Simplify not simplifying its own answer, and
is not this change.
On 2.6.0 and on this branch, Simplify:
2 + (-2)*cos(x)^2 + (-2)*sin(x)^2 unchanged -> 0
2 + (-2) * cos(2 * x) + (-4) * sin(x) ^ 2 unchanged -> 0
Chain against master 966f26a: verdicts identical, 0 moves; performance
gate passed on all 19; unit suite 17,159 passed, 0 failed. RuleCheck
passes, Confluence and CanonCheck match their baselines, SimpSweep
10,463/10,463.
Part of #2133
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
0 commit comments