Files
mercury/tests/hard_coded/solve_quadratic.exp
Mark Brown c5f6395780 Add a function to the standard library to solve quadratic equations.
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.
2000-11-01 07:01:58 +00:00

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.