Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 45 lines (39 sloc) 1.309 kB
c6178c2 @scottransom First commit.
authored
1 DOUBLE PRECISION FUNCTION sla_DVDV (VA, VB)
2 *+
3 * - - - - -
4 * D V D V
5 * - - - - -
6 *
7 * Scalar product of two 3-vectors (double precision)
8 *
9 * Given:
10 * VA dp(3) first vector
11 * VB dp(3) second vector
12 *
13 * The result is the scalar product VA.VB (double precision)
14 *
15 * P.T.Wallace Starlink November 1984
16 *
17 * Copyright (C) 1995 Rutherford Appleton Laboratory
18 *
19 * License:
20 * This program is free software; you can redistribute it and/or modify
21 * it under the terms of the GNU General Public License as published by
22 * the Free Software Foundation; either version 2 of the License, or
23 * (at your option) any later version.
24 *
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 * GNU General Public License for more details.
29 *
30 * You should have received a copy of the GNU General Public License
31 * along with this program (see SLA_CONDITIONS); if not, write to the
32 * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
33 * Boston, MA 02111-1307 USA
34 *
35 *-
36
37 IMPLICIT NONE
38
39 DOUBLE PRECISION VA(3),VB(3)
40
41
42 sla_DVDV=VA(1)*VB(1)+VA(2)*VB(2)+VA(3)*VB(3)
43
44 END
Something went wrong with that request. Please try again.