@@ -51,19 +51,19 @@ describe("Base constituent definitions", () => {
5151 } ) ;
5252
5353 it ( "has correct properties for MA2 (lunar variational semi-diurnal, mu2)" , ( ) => {
54- // MA2: [2, 0, -2, 1 , 0, 0, 0]
55- // Speed: 2(T+h-s) - 2h + p ≈ 27.968208 °/h
54+ // MA2: [2, 0, -1, 0 , 0, 0, 0]
55+ // Speed: 2(T+h-s) - 2h + p ≈ 28.943 °/h
5656 expect ( constituents . MA2 ) . toBeDefined ( ) ;
57- expect ( constituents . MA2 . speed ( testAstro ) ) . toBeCloseTo ( 27.968208 , 2 ) ;
57+ expect ( constituents . MA2 . speed ( testAstro ) ) . toBeCloseTo ( 28.943 , 3 ) ;
5858 expect ( constituents . MA2 . u ( testAstro ) ) . toBeCloseTo ( constituents . M2 . u ( testAstro ) , 2 ) ;
5959 expect ( constituents . MA2 . f ( testAstro ) ) . toBeCloseTo ( constituents . M2 . f ( testAstro ) , 3 ) ;
6060 } ) ;
6161
6262 it ( "has correct properties for MB2 (lunar elliptic parameter variation)" , ( ) => {
63- // MB2: [2, 0, -3, 1 , 0, 1 , 0]
64- // Speed: 2(T+h-s) - 3h + p + p' ≈ 27.968 °/h
63+ // MB2: [2, 0, 1, 0 , 0, 0 , 0]
64+ // Speed: 2(T+h-s) - 3h + p + p' ≈ 29.025 °/h
6565 expect ( constituents . MB2 ) . toBeDefined ( ) ;
66- expect ( constituents . MB2 . speed ( testAstro ) ) . toBeCloseTo ( 27.968 , 2 ) ;
66+ expect ( constituents . MB2 . speed ( testAstro ) ) . toBeCloseTo ( 29.025 , 2 ) ;
6767 expect ( constituents . MB2 . u ( testAstro ) ) . toBeCloseTo ( constituents . M2 . u ( testAstro ) , 2 ) ;
6868 expect ( constituents . MB2 . f ( testAstro ) ) . toBeCloseTo ( constituents . M2 . f ( testAstro ) , 3 ) ;
6969 } ) ;
0 commit comments