def test_exp_eq_approx_exp_e12_e23(self): pga = GeometricAlgebra(pga_signature) # a = 3e12 + 5e23 a = 3 * pga.e12 + 5 * pga.e23 # exp(a) ~= 0.90 - 0.22e12 -0.37e23 self.assertTensorsApproxEqual(pga.approx_exp(a), pga.exp(a))
def test_exp_eq_approx_exp_e01_e02(self): pga = GeometricAlgebra(pga_signature) # a = 3e01 + 5e02 a = 3 * pga.e01 + 5 * pga.e02 # exp(a) = 1 + 3e01 + 5e02 self.assertTensorsApproxEqual(pga.approx_exp(a), pga.exp(a))