Closed Bodigrim closed 6 years ago
I'll assign myself to this issue.
@Bodigrim I was browsing other open issues since I put my two open PRs on hold while I solve some problems with them (one of them solved by this issue), I'll keep an eye on this to use it in #118.
@Bodigrim For efficient implementation of solveQuadratic
for prime powers, Hensel's lemma is likely a good approach (and of course for other composites, the Chinese remainder theorem will reduce the problem to this case).
Provide high-level functions to solve linear and quadratic equations by modulo.
Implement
solveLinear
satisfyingpropLinear
andsolveQuadratic
satisfyingpropQuadratic
.Applications:
solveLinear
can be used instead ofsolveCongruence
in #110,solveQuadratic
may be used to solvenorm (z :+ 1) == 0
in quadratic fields (Gaussian, Eisenstein, etc.) for purposes discussed in #111.