コード例 #1
0
 def test__get_sig__13(self):
     pol = MARing.ring('x4^2-x6*x7 + x2^2-x6*x8 - x2*x4+x0*x6')
     sig = MARing.get_sig(pol)
     print(pol)
     print(sig)
     assert sig == [1, 3]
コード例 #2
0
 def test__get_sig__14(self):
     pol = MARing.ring('-x0^2+x1^2+x2^2+x3^2+x4^2')
     sig = MARing.get_sig(pol)
     print(pol)
     print(sig)
     assert sig == [1, 4]