pure quadratic is working

This commit is contained in:
hugogogo
2026-05-14 23:43:58 +02:00
parent 6c6accc289
commit aa78af4e0f
7 changed files with 83 additions and 39 deletions

View File

@@ -330,7 +330,7 @@ run_test \
"3 * x^2 + 5 * x^1 - 2 * x^0 = 5 * x" "\
Reduced form: -2 * x^0 + 0 * x^1 + 3 * x^2 = 0
Polynomial degree: 2
Discriminant is strictly positive, the two solutions are:
Radicant is strictly positive, the two solutions are:
√(2/3)
-√(2/3)"
@@ -339,16 +339,16 @@ run_test \
"9 * x^2 + 5 * x^1 - 2 * x^0 = 5 * x" "\
Reduced form: -2 * x^0 + 0 * x^1 + 9 * x^2 = 0
Polynomial degree: 2
Discriminant is strictly positive, the two solutions are:
(√2)/3
-(√2)/3"
Radicant is strictly positive, the two solutions are:
(2)/3
-√(2)/3"
run_test \
"28. degree 2 pure" \
"3 * x^2 + 5 * x^1 - 4 * x^0 = 5 * x" "\
Reduced form: -4 * x^0 + 0 * x^1 + 3 * x^2 = 0
Polynomial degree: 2
Discriminant is strictly positive, the two solutions are:
Radicant is strictly positive, the two solutions are:
2/√(3)
-2/√(3)"
@@ -358,7 +358,7 @@ run_test \
"16 * x^2 + 5 * x^1 - 4 * x^0 = 5 * x" "\
Reduced form: -4 * x^0 + 0 * x^1 + 3 * x^2 = 0
Polynomial degree: 2
Discriminant is strictly positive, the two solutions are:
Radicant is strictly positive, the two solutions are:
1/2
-1/2"
@@ -368,6 +368,6 @@ run_test \
"4 * x^2 + 5 * x^1 - 16 * x^0 = 5 * x" "\
Reduced form: -4 * x^0 + 0 * x^1 + 3 * x^2 = 0
Polynomial degree: 2
Discriminant is strictly positive, the two solutions are:
Radicant is strictly positive, the two solutions are:
2
-2"