Did I find the right examples for you? yes no

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/p/a/palpy-1.0/test_pal.py   palpy(Download)
    def test_cc2s(self):
        (da, db) = pal.dcc2s( np.array( [100., -50., 25. ] ) )
        self.assertAlmostEqual( da, -0.4636476090008061, 12 )
        self.assertAlmostEqual( db, 0.2199879773954594, 12 )
 
    def test_sep(self):
        d1 = np.array( [ 1.0, 0.1, 0.2 ] )
        d2 = np.array( [ -3.0, 1e-3, 0.2 ] )
        (ad1, bd1) = pal.dcc2s( d1 )
        (ad2, bd2) = pal.dcc2s( d2 )