forked from algebraic-solving/msolve
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c40824
commit d7999e2
Showing
5 changed files
with
78 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
x1,x2,x3,x4,x5,x6,x7,x8 | ||
0 | ||
x1+2*x2+2*x3+2*x4+2*x5+2*x6+2*x7+2*x8-1, | ||
x1^2+2*x2^2+2*x3^2+2*x4^2+2*x5^2+2*x6^2+2*x7^2+2*x8^2-x1, | ||
2*x1*x2+2*x2*x3+2*x3*x4+2*x4*x5+2*x5*x6+2*x6*x7+2*x7*x8-x2, | ||
x2^2+2*x1*x3+2*x2*x4+2*x3*x5+2*x4*x6+2*x5*x7+2*x6*x8-x3, | ||
2*x2*x3+2*x1*x4+2*x2*x5+2*x3*x6+2*x4*x7+2*x5*x8-x4, | ||
x3^2+2*x2*x4+2*x1*x5+2*x2*x6+2*x3*x7+2*x4*x8-x5, | ||
2*x3*x4+2*x2*x5+2*x1*x6+2*x2*x7+2*x3*x8-x6, | ||
x4^2+2*x3*x5+2*x2*x6+2*x1*x7+2*x2*x8-x7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#Truncated reduced Groebner basis data | ||
#--- | ||
#field characteristic: 0 | ||
#variable order: x1, x2, x3, x4, x5, x6, x7, x8 | ||
#monomial order: graded reverse lexicographical | ||
#length of basis: 5 elements sorted by increasing leading monomials | ||
#--- | ||
[x1+2*x2+2*x3+2*x4+2*x5+2*x6+2*x7+2*x8-1, | ||
15*x5^2+30*x4*x6+64*x5*x6+51*x6^2+30*x3*x7+64*x4*x7+102*x5*x7+144*x6*x7+95*x7^2+30*x2*x8+64*x3*x8+102*x4*x8+144*x5*x8+190*x6*x8+240*x7*x8+147*x8^2-1*x2-4*x3-9*x4-16*x5-25*x6-36*x7-49*x8, | ||
30*x4*x5+30*x3*x6-34*x5*x6-36*x6^2+30*x2*x7-34*x4*x7-72*x5*x7-114*x6*x7-80*x7^2-60*x2*x8-94*x3*x8-132*x4*x8-174*x5*x8-220*x6*x8-270*x7*x8-192*x8^2+x2+4*x3+9*x4+16*x5+25*x6+36*x7+64*x8, | ||
x4^2+2*x3*x5+2*x2*x6-4*x2*x7-4*x3*x7-4*x4*x7-4*x5*x7-4*x6*x7-4*x7^2+2*x2*x8-4*x7*x8+x7, | ||
2*x3*x4+2*x2*x5-4*x2*x6-4*x3*x6-4*x4*x6-4*x5*x6-4*x6^2+2*x2*x7-4*x6*x7+2*x3*x8-4*x6*x8+x6 | ||
]: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#!/bin/bash | ||
|
||
file=kat8-qq-truncate | ||
|
||
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res \ | ||
-N 5 -g 2 -l 2 -t 1 | ||
if [ $? -gt 0 ]; then | ||
exit 1 | ||
fi | ||
|
||
diff test/diff/$file.res output_files/$file.res | ||
if [ $? -gt 0 ]; then | ||
exit 2 | ||
fi | ||
|
||
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res \ | ||
-N 5 -g 2 -l 2 -t 2 | ||
if [ $? -gt 0 ]; then | ||
exit 21 | ||
fi | ||
|
||
diff test/diff/$file.res output_files/$file.res | ||
if [ $? -gt 0 ]; then | ||
exit 22 | ||
fi | ||
|
||
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res \ | ||
-N 5 -g 2 -l 44 -t 1 | ||
if [ $? -gt 0 ]; then | ||
exit 41 | ||
fi | ||
|
||
diff test/diff/$file.res output_files/$file.res | ||
if [ $? -gt 0 ]; then | ||
exit 42 | ||
fi | ||
|
||
$(pwd)/msolve -f input_files/$file.ms -o test/diff/$file.res \ | ||
-N 5 -g 2 -l 44 -t 2 | ||
if [ $? -gt 0 ]; then | ||
exit 61 | ||
fi | ||
|
||
diff test/diff/$file.res output_files/$file.res | ||
if [ $? -gt 0 ]; then | ||
exit 62 | ||
fi | ||
|
||
rm test/diff/$file.res |