예제 #1
0
 def test_ldn_in_other_unit(self):
     ldbody = self.ldbody.to('kg,rad,(m,m/s)')
     ob = self.ob.to('m')
     sn = erfa_ufunc.ldn(ldbody, ob, self.sc)
     assert_quantity_allclose(sn, [-0.7632762579693333866,
                                   -0.6086337636093002660,
                                   -0.2167355420646328159] * u.one,
                              atol=1e-12, rtol=0)
예제 #2
0
 def test_ldn_in_SI(self):
     sn = erfa_ufunc.ldn(self.ldbody.si, self.ob.si, self.sc)
     assert_quantity_allclose(sn, [-0.7632762579693333866,
                                   -0.6086337636093002660,
                                   -0.2167355420646328159] * u.one,
                              atol=1e-12, rtol=0)