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

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