next up previous index
Next: F118 Rotating a Up: CERNLIB Previous: F116 Scalar Product

F117 Vector Product of Two 3-Vectors

Routine ID: F117
Author(s): CERN TC DivisionLibrary: KERNLIB
Submitter: C. LetertreSubmitted: 01.09.1969
Language: FortranRevised:

Subroutine subprogram CROSS computes the vector (or cross) product

c=a xb

of two 3-vectors a,b .

Structure:

SUBROUTINE subprogram
User Entry Names: CROSS
COMMON Block Names and Lengths: /SLATE/ 40

Usage:

    CALL CROSS(A,B,C)
A,B
( REAL) One-dimensional arrays of length 3, containing the components (a1,a2,a3) ,
(b1,b2,b3) , respectively.
C
( REAL) On exit, C contains the components (c1,c2,c3) of a xb , i.e.
c1=a2b3-a3b2

c2=a3b1-a1b3

c3=a1b2-a2b1 .
C may overlap either A or B.

F118


Janne Saarela
Mon Apr 3 15:06:23 METDST 1995