Exemple #1
0
 def test_cubic_complex(self):        
     tmp, r1, r2, r3 = poly.complex_solve_cubic(6,11,6)
     assert(tmp == 3)
     assert(type(r1) == _complexType)
     assert(type(r2) == _complexType)
     assert(type(r3) == _complexType)
     assert(r1 == -2 or r2 == -2 or r3 == -2)
     assert(r1 == -1 or r2 == -1 or r3 == -1)
     assert(r1 == -3 or r2 == -3 or r3 == -3) 
Exemple #2
0
 def test_cubic_complex(self):        
     tmp, r1, r2, r3 = poly.complex_solve_cubic(6,11,6)
     assert(tmp == 3)
     assert(type(r1) == types.ComplexType)
     assert(type(r2) == types.ComplexType)
     assert(type(r3) == types.ComplexType)
     assert(r1 == -2 or r2 == -2 or r3 == -2)
     assert(r1 == -1 or r2 == -1 or r3 == -1)
     assert(r1 == -3 or r2 == -3 or r3 == -3) 
Exemple #3
0
def test_cubic_complex():        
    tmp, r1, r2, r3 = poly.complex_solve_cubic(6,11,6)
Exemple #4
0
def test_cubic_complex():
    tmp, r1, r2, r3 = poly.complex_solve_cubic(6, 11, 6)