Coverage Report

Created: 2026-07-30 06:46

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/faur03.rs
Line
Count
Source
1
use crate::consts::D2PI;
2
use std::ops::Rem;
3
4
/// Fundamental argument, IERS Conventions (2003):
5
/// mean longitude of Uranus.
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    mean longitude of Uranus, 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 adapted 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 faur03(t: f64) -> f64 {
31
    /* Mean longitude of Uranus (IERS Conventions 2003). */
32
0
    (5.481293872 + 7.4781598567 * t).rem(D2PI)
33
0
}