pure quadratic is working
This commit is contained in:
14
tester.sh
14
tester.sh
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user