self.assertAlmostEqual(qmath.sin(self.c1), cmath.sin(self.c1)) self.assertAlmostEqual(qmath.sin(self.c2), cmath.sin(self.c2)) self.assertAlmostEqual(qmath.sin(Quat(self.f1)), math.sin(self.f1)) self.assertAlmostEqual(qmath.sin(Quat(0,3)), cmath.sin(3J)) self.assertAlmostEqual...
c++ primer上说:c++模板函数的声明与定义通常放在头文件中,而普通的函数通常是声明放在头文件中,定义...