source: trunk/FACT++/sofa/src/fad03.c@ 18365

Last change on this file since 18365 was 18346, checked in by tbretz, 10 years ago
File size: 5.7 KB
Line 
1#include "sofa.h"
2
3double iauFad03(double t)
4/*
5** - - - - - - - - -
6** i a u F a d 0 3
7** - - - - - - - - -
8**
9** Fundamental argument, IERS Conventions (2003):
10** mean elongation of the Moon from the Sun.
11**
12** This function is part of the International Astronomical Union's
13** SOFA (Standards Of Fundamental Astronomy) software collection.
14**
15** Status: canonical model.
16**
17** Given:
18** t double TDB, Julian centuries since J2000.0 (Note 1)
19**
20** Returned (function value):
21** double D, radians (Note 2)
22**
23** Notes:
24**
25** 1) Though t is strictly TDB, it is usually more convenient to use
26** TT, which makes no significant difference.
27**
28** 2) The expression used is as adopted in IERS Conventions (2003) and
29** is from Simon et al. (1994).
30**
31** References:
32**
33** McCarthy, D. D., Petit, G. (eds.), IERS Conventions (2003),
34** IERS Technical Note No. 32, BKG (2004)
35**
36** Simon, J.-L., Bretagnon, P., Chapront, J., Chapront-Touze, M.,
37** Francou, G., Laskar, J. 1994, Astron.Astrophys. 282, 663-683
38**
39** This revision: 2013 June 18
40**
41** SOFA release 2015-02-09
42**
43** Copyright (C) 2015 IAU SOFA Board. See notes at end.
44*/
45{
46 double a;
47
48/* Mean elongation of the Moon from the Sun (IERS Conventions 2003). */
49 a = fmod( 1072260.703692 +
50 t * ( 1602961601.2090 +
51 t * ( - 6.3706 +
52 t * ( 0.006593 +
53 t * ( - 0.00003169 ) ) ) ), TURNAS ) * DAS2R;
54
55 return a;
56
57/*----------------------------------------------------------------------
58**
59** Copyright (C) 2015
60** Standards Of Fundamental Astronomy Board
61** of the International Astronomical Union.
62**
63** =====================
64** SOFA Software License
65** =====================
66**
67** NOTICE TO USER:
68**
69** BY USING THIS SOFTWARE YOU ACCEPT THE FOLLOWING SIX TERMS AND
70** CONDITIONS WHICH APPLY TO ITS USE.
71**
72** 1. The Software is owned by the IAU SOFA Board ("SOFA").
73**
74** 2. Permission is granted to anyone to use the SOFA software for any
75** purpose, including commercial applications, free of charge and
76** without payment of royalties, subject to the conditions and
77** restrictions listed below.
78**
79** 3. You (the user) may copy and distribute SOFA source code to others,
80** and use and adapt its code and algorithms in your own software,
81** on a world-wide, royalty-free basis. That portion of your
82** distribution that does not consist of intact and unchanged copies
83** of SOFA source code files is a "derived work" that must comply
84** with the following requirements:
85**
86** a) Your work shall be marked or carry a statement that it
87** (i) uses routines and computations derived by you from
88** software provided by SOFA under license to you; and
89** (ii) does not itself constitute software provided by and/or
90** endorsed by SOFA.
91**
92** b) The source code of your derived work must contain descriptions
93** of how the derived work is based upon, contains and/or differs
94** from the original SOFA software.
95**
96** c) The names of all routines in your derived work shall not
97** include the prefix "iau" or "sofa" or trivial modifications
98** thereof such as changes of case.
99**
100** d) The origin of the SOFA components of your derived work must
101** not be misrepresented; you must not claim that you wrote the
102** original software, nor file a patent application for SOFA
103** software or algorithms embedded in the SOFA software.
104**
105** e) These requirements must be reproduced intact in any source
106** distribution and shall apply to anyone to whom you have
107** granted a further right to modify the source code of your
108** derived work.
109**
110** Note that, as originally distributed, the SOFA software is
111** intended to be a definitive implementation of the IAU standards,
112** and consequently third-party modifications are discouraged. All
113** variations, no matter how minor, must be explicitly marked as
114** such, as explained above.
115**
116** 4. You shall not cause the SOFA software to be brought into
117** disrepute, either by misuse, or use for inappropriate tasks, or
118** by inappropriate modification.
119**
120** 5. The SOFA software is provided "as is" and SOFA makes no warranty
121** as to its use or performance. SOFA does not and cannot warrant
122** the performance or results which the user may obtain by using the
123** SOFA software. SOFA makes no warranties, express or implied, as
124** to non-infringement of third party rights, merchantability, or
125** fitness for any particular purpose. In no event will SOFA be
126** liable to the user for any consequential, incidental, or special
127** damages, including any lost profits or lost savings, even if a
128** SOFA representative has been advised of such damages, or for any
129** claim by any third party.
130**
131** 6. The provision of any version of the SOFA software under the terms
132** and conditions specified herein does not imply that future
133** versions will also be made available under the same terms and
134** conditions.
135*
136** In any published work or commercial product which uses the SOFA
137** software directly, acknowledgement (see www.iausofa.org) is
138** appreciated.
139**
140** Correspondence concerning SOFA software should be addressed as
141** follows:
142**
143** By email: sofa@ukho.gov.uk
144** By post: IAU SOFA Center
145** HM Nautical Almanac Office
146** UK Hydrographic Office
147** Admiralty Way, Taunton
148** Somerset, TA1 2DN
149** United Kingdom
150**
151**--------------------------------------------------------------------*/
152}
Note: See TracBrowser for help on using the repository browser.