Coverage Report

Created: 2026-09-04 06:48

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/faom03.rs
Line
Count
Source
1
use crate::consts::{DAS2R, TURNAS};
2
use std::ops::Rem;
3
4
/// Fundamental argument, IERS Conventions (2003):
5
/// mean longitude of the Moon's ascending node.
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    Omega, 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 faom03(t: f64) -> f64 {
31
    /* Mean longitude of the Moon's ascending node */
32
    /* (IERS Conventions 2003).                    */
33
0
    (450160.398036 + t * (-6962890.5431 + t * (7.4722 + t * (0.007702 + t * -0.00005939))))
34
0
        .rem(TURNAS)
35
0
        * DAS2R
36
0
}