AngouriMath

Navigation

← Back to list of members

TwoSquareRootsSquaredAway​(System.​ValueTuple{AngouriMath.​Entity,​System.​Collections.​Generic.​List{System.​ValueTuple{AngouriMath.​Entity,​AngouriMath.​Entity.​Number.​Integer}}},​System.​ValueTuple{AngouriMath.​Entity,​System.​Collections.​Generic.​List{System.​ValueTuple{AngouriMath.​Entity,​AngouriMath.​Entity.​Number.​Integer}}},​AngouriMath.​Entity)

 Method (no overloads)

Summary

m_1 sqrt(A) + m_2 sqrt(B) + P = 0, two different square roots and nothing else
fractional, squared until neither is left: m_1^2 A = (P + m_2 sqrt(B))^2, so
2 P m_2 sqrt(B) = m_1^2 A - P^2 - m_2^2 B, and squared again
4 P^2 m_2^2 B = (m_1^2 A - P^2 - m_2^2 B)^2. Each squaring keeps every root of
the equation it squares, so this has all of them, and the roots it adds are not the
equation's; the caller puts each back in. Without it two different radicals were not
raised at all, and sqrt(-4 - 4x) + sqrt(2 + x) = -3 - 4x went to Newton's method, which
answered its root -1.195 and not its root -1, where the first radical's argument is 0.
Null where either is not a lone square root.

























Angouri © 2019-2026 · Project's repo · Site's repo · Octicons · Transparency · 5629 pages online