File tree 5 files changed +126
-119
lines changed
5 files changed +126
-119
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,8 @@ mod tests {
172
172
173
173
// Relative error tolerance for float_eq assertions.
174
174
// This is somewhat loose, being based on observations of how closely our implementations
175
- // match ERFA outputs rather than any target TOLERANCE.
175
+ // match ERFA outputs rather than any target tolerance.
176
+ // See https://github.com/lox-space/lox/pull/23#discussion_r1398485509
176
177
const TOLERANCE : f64 = 1e-11 ;
177
178
178
179
// Test cases for t.
@@ -185,7 +186,7 @@ mod tests {
185
186
assert_float_eq ! (
186
187
general_accum_precession_in_longitude( T_ZERO ) ,
187
188
0.0 ,
188
- rel <= TOLERANCE
189
+ abs <= TOLERANCE
189
190
) ;
190
191
assert_float_eq ! (
191
192
general_accum_precession_in_longitude( T_POSITIVE ) ,
Original file line number Diff line number Diff line change @@ -35,11 +35,11 @@ struct Coefficients {
35
35
/// `Ω`.
36
36
om : f64 ,
37
37
/// Longitude sine.
38
- long_sin_1 : f64 ,
39
- long_sin_t : f64 ,
38
+ sin_psi_1 : f64 ,
39
+ sin_psi_t : f64 ,
40
40
/// Obliquity cosine.
41
- obl_cos_1 : f64 ,
42
- obl_cos_t : f64 ,
41
+ cos_eps_1 : f64 ,
42
+ cos_eps_t : f64 ,
43
43
}
44
44
45
45
/// Calculate nutation coefficients at `epoch` using the given [Model].
You can’t perform that action at this time.
0 commit comments