Coverage Report

Created: 2026-05-16 06:09

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/rust/registry/src/index.crates.io-1949cf8c6b5b557f/sofars-0.6.1/src/fundargs/fal03.rs
Line
Count
Source
1
use crate::consts::{DAS2R, TURNAS};
2
use std::ops::Rem;
3
4
/// Fundamental argument, IERS Conventions (2003):
5
/// mean anomaly of the Moon.
6
///
7
/// Status:  canonical model.
8
///
9
/// Given:
10
///    t     f64    TDB, Julian centuries since J2000.0 (Note 1)
11
///
12
/// Returned (function value):
13
///          f64    l, radians (Note 2)
14
///
15
/// Notes:
16
///
17
/// 1) Though t is strictly TDB, it is usually more convenient to use
18
///    TT, which makes no significant difference.
19
///
20
/// 2) The expression used is as adopted in IERS Conventions (2003) and
21
///    is from Simon et al. (1994).
22
///
23
/// References:
24
///
25
///    McCarthy, D. D., Petit, G. (eds.), IERS Conventions (2003),
26
///    IERS Technical Note No. 32, BKG (2004)
27
///
28
///    Simon, J.-L., Bretagnon, P., Chapront, J., Chapront-Touze, M.,
29
///    Francou, G., Laskar, J. 1994, Astron.Astrophys. 282, 663-683
30
0
pub fn fal03(t: f64) -> f64 {
31
    /* Mean anomaly of the Moon (IERS Conventions 2003). */
32
0
    (485868.249036 + t * (1717915923.2178 + t * (31.8792 + t * (0.051635 + t * -0.00024470))))
33
0
        .rem(TURNAS)
34
0
        * DAS2R
35
0
}