Esempio n. 1
0
func TestNode180(t *testing.T) {
	for i, j := range n180 {
		if e := math.Abs(moon.Node(j) - math.Pi); e > 1e-3 {
			t.Error(i, e)
		}
	}
}
Esempio n. 2
0
func TestNode0(t *testing.T) {
	for i, j := range n0 {
		if e := math.Abs(base.PMod(moon.Node(j)+1, 2*math.Pi) - 1); e > 1e-3 {
			t.Error(i, e)
		}
	}
}