mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-23 13:23:47 +00:00
Estimated hours taken: 1 Add a function to the standard library to solve quadratic equations. library/math.m: Export the new function, as well as the type that it returns. NEWS: Mention the new function. tests/hard_coded/Mmakefile: tests/hard_coded/solve_quadratic.m: tests/hard_coded/solve_quadratic.exp: Test case for the new feature.
17 lines
257 B
Plaintext
17 lines
257 B
Plaintext
Two roots: ok, ok.
|
|
Two roots: ok, ok.
|
|
Two roots: ok, ok.
|
|
Two roots: ok, ok.
|
|
Two roots: ok, ok.
|
|
Two roots: ok, ok.
|
|
One root: ok.
|
|
One root: ok.
|
|
One root: ok.
|
|
No roots.
|
|
No roots.
|
|
No roots.
|
|
Two roots: ok, ok.
|
|
Two roots: ok, ok.
|
|
One root: ok.
|
|
Two roots: ok, ok.
|