1 /*
2 * - - - - - - - - - - - - - - -
3 * g a l _ h f k 5 z _ t e s t
4 * - - - - - - - - - - - - - - -
5 *
6 * This routine is part of the General Astrodynamics Library
7 *
8 * Description:
9 *
10 * Test gal_hfk5z routine.
11 *
12 * Status:
13 *
14 * Internal test routine
15 *
16 * Called:
17 *
18 * gal_hfk5z
19 * gal_vdv
20 *
21 * This Revision:
22 *
23 * 2008 January 14 ( c version 2008 February 23 )
24 *
25 * Copyright (C) 2008 Paul C. L. Willmott. See notes at end.
26 */
27
28 #include "gal_hfk5z.h"
29 #include "gal_hfk5z_test.h"
30 #include "gal_test.h"
31
32 void
gal_hfk5z_test()33 gal_hfk5z_test
34 (
35 )
36 {
37
38 double rh, dh, r5, d5, dr5, dd5 ;
39
40 extern int gal_tfunc ;
41
42 /*
43 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
44 */
45
46 rh = 1.767794352 ;
47 dh = -0.2917512594 ;
48
49 gal_hfk5z ( rh, dh, 2400000.5, 54479.0, &r5, &d5, &dr5, &dd5 ) ;
50 gal_vdv ( r5, 1.767794490535580909, 1e-12, "gal_hfk5z", "r5" ) ;
51 gal_vdv ( d5, -0.2917513695320114175, 1e-12, "gal_hfk5z", "d5" ) ;
52 gal_vdv ( dr5, 0.4335890983539242207e-08, 1e-12, "gal_hfk5z", "dr5" ) ;
53 gal_vdv ( dd5, -0.8569648841237747653e-09, 1e-12, "gal_hfk5z", "dd5" ) ;
54
55 gal_tfunc++ ;
56
57 /*
58 * Finished.
59 */
60
61 }
62
63 /*
64 * gal - General Astrodynamics Library
65 * Copyright (C) 2008 Paul C. L. Willmott
66 *
67 * This program is free software; you can redistribute it and/or modify
68 * it under the terms of the GNU General Public License as published by
69 * the Free Software Foundation; either version 2 of the License, or
70 * (at your option) any later version.
71 *
72 * This program is distributed in the hope that it will be useful,
73 * but WITHOUT ANY WARRANTY; without even the implied warranty of
74 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
75 * GNU General Public License for more details.
76 *
77 * You should have received a copy of the GNU General Public License along
78 * with this program; if not, write to the Free Software Foundation, Inc.,
79 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
80 *
81 * Contact:
82 *
83 * Paul Willmott
84 * vp9mu@amsat.org
85 */
86