Exemple #1
0
 def test_resultant_rdegree(self):
     g = Group.fromarray([45, 135, 225, 315], [45, 45, 45, 45])
     c1 = g.resultant.uv == Lin(0, 90)
     c2 = np.allclose(abs(g.resultant), np.sqrt(8))
     c3 = np.allclose((g.rdegree / 100 + 1)**2, 2)
     self.assertTrue(c1 and c2 and c3)