VSCL ( Vector scaling, 3 dimensions )
SUBROUTINE VSCL ( S, V1, VOUT )
Multiply a scalar and a 3dimensional double precision vector.
None.
VECTOR
DOUBLE PRECISION S
DOUBLE PRECISION V1 ( 3 )
DOUBLE PRECISION VOUT ( 3 )
VARIABLE I/O DESCRIPTION
  
S I Scalar to multiply a vector.
V1 I Vector to be multiplied.
VOUT O Product vector, S*V1.
S This is a double precision scalar used to multiply the
vector V1.
V1 This is a 3dimensional, double precision vector which is
to be scaled by S.
VOUT This is a 3dimensional, double precision vector which
is the scalar multiple of V1. VOUT = S*V1.
None.
Error free.
None.
VSCL multiplies each component of V1 by S to form the respective
components of VOUT. No error checking is performed.
The following table shows the output VOUT as a function of the
the inputs V1, and S from the subroutine VSCL.
V1 S VOUT

(1D0, 2D0, 0D0) 1D0 (1D0, 2D0, 0D0)
(0D0, 0D0, 0D0) 5D0 (0D0, 0D0, 0D0)
The user is responsible for insuring that no floating point
overflow occurs from multiplying S by any component of V1. No
error recovery or reporting scheme is incorporated in this
subroutine.
None.
W.M. Owen (JPL)
SPICELIB Version 1.0.2, 23APR2010 (NJB)
Header correction: assertions that the output
can overwrite the input have been removed.
SPICELIB Version 1.0.1, 10MAR1992 (WLT)
Comment section for permuted index source lines was added
following the header.
SPICELIB Version 1.0.0, 31JAN1990 (WMO)
