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 c937aae
Browse filesBrowse the repository at this point in the historyBrowse files
The square root taken after solving for x^2 is exact where it can be (#2173)
A polynomial whose powers share a factor is solved in x^gcd, and its roots
are the gcd-th roots of what that gives. With the factor 2 that is a square
root, written sqrt(y) whatever y was, so an equation with no term in x kept
the square under the root that #2170 took out of the formula:
x^2 = (a + b)^2 was { sqrt((a + b)^2), -sqrt((a + b)^2) }.
x^2 = y is the quadratic x^2 - y = 0, so with the factor 2 each y goes
through the same exact root as the formula, and keeps sqrt where it is not
a rational number times a square. The parity check in front refuses a y of
odd degree in a symbol, such as x^2 = a, before any polynomial is built.
On 2.6.0 and on this branch, Solve:
x^2 = (a + b)^2 sqrt form -> { -a - b, a + b }
x^4 - (a^2 + b^2)*x^2 + a^2*b^2 = 0 nested sqrt -> { -b, b, -a, a }
sin(x)^2 = (a + 1)^2 arcsin(sqrt((a + 1)^2)) -> arcsin(a + 1)
The eigenvalues of [[0, J], [J, 0]] are J and -J instead of +-sqrt(J^2);
Eigenvalues is new since 2.6.0, so its test and doc comment are updated
and no released answer changes there.
Twenty-three equations had every root substituted back at sampled values
of the other symbols, with residual 0. Unit suite 17,144 passed, 0 failed;
RootCheck 596/596 clean; CasBench 120/121, unchanged.
Part of #2140
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
0 commit comments