add positiv_zero in output
This commit is contained in:
14
tester.sh
14
tester.sh
@@ -170,17 +170,17 @@ run_test \
|
||||
Reduced form: 0 * x^0 + 2 * x^1 + 3 * x^2 = 0
|
||||
Polynomial degree: 2
|
||||
Discriminant is strictly positive, the two solutions are:
|
||||
2.66667
|
||||
-3.33333"
|
||||
0
|
||||
-0.666667"
|
||||
|
||||
run_test \
|
||||
"6. degree 2" \
|
||||
"3.4 * x^2 + 1 * x^1 - 2.0 * x^0 = 5.123 * x^1" "\
|
||||
Reduced form: 2 * x^0 - 4.123 * x^1 + 3.4 * x^2 = 0
|
||||
Reduced form: -2 * x^0 - 4.123 * x^1 + 3.4 * x^2 = 0
|
||||
Polynomial degree: 2
|
||||
Discriminant is strictly negative, the two complex solutions are:
|
||||
4.123/6.8 + 3.19388i/6.8
|
||||
4.123/6.8 - 3.19388i/6.8"
|
||||
Discriminant is strictly positive, the two solutions are:
|
||||
1.58401
|
||||
-0.371359"
|
||||
|
||||
run_test \
|
||||
"7. float exponent" \
|
||||
@@ -191,7 +191,7 @@ error
|
||||
run_test \
|
||||
"8. degree 4" \
|
||||
"3x^2 + 2x -7x^4 = x^4" "\
|
||||
Reduced form: 0 * x^0 + 2 * x^1 + 3 * x^2 + 6 * x^4 = 0
|
||||
Reduced form: 0 * x^0 + 2 * x^1 + 3 * x^2 + 0 * x^3 - 8 * x^4 = 0
|
||||
Polynomial degree: 4
|
||||
The polynomial degree is strictly greater than 2, I can't solve."
|
||||
|
||||
|
||||
Reference in New Issue
Block a user