vscl

 Procedure Abstract Required_Reading Keywords Declarations Brief_I/O Detailed_Input Detailed_Output Parameters Exceptions Files Particulars Examples Restrictions Literature_References Author_and_Institution Version

#### Procedure

```      VSCL ( Vector scaling, 3 dimensions )

SUBROUTINE VSCL ( S, V1, VOUT )

```

#### Abstract

```     Multiply a scalar and a 3-dimensional double precision vector.
```

```     None.
```

#### Keywords

```     VECTOR
```

#### Declarations

```
DOUBLE PRECISION   S
DOUBLE PRECISION   V1   ( 3 )
DOUBLE PRECISION   VOUT ( 3 )

```

#### Brief_I/O

```     VARIABLE  I/O  DESCRIPTION
--------  ---  --------------------------------------------------
S          I   Scalar to multiply a vector.
V1         I   Vector to be multiplied.
VOUT       O   Product vector, S*V1.
```

#### Detailed_Input

```     S    This is a double precision scalar used to multiply the
vector V1.

V1   This is a 3-dimensional, double precision vector which is
to be scaled by S.
```

#### Detailed_Output

```     VOUT   This is a 3-dimensional, double precision vector which
is the scalar multiple of V1.  VOUT = S*V1.
```

#### Parameters

```     None.
```

#### Exceptions

```     Error free.
```

#### Files

```     None.
```

#### Particulars

```     VSCL multiplies each component of V1 by S to form the respective
components of VOUT.  No error checking is performed.
```

#### Examples

```     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)
```

#### Restrictions

```     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.
```

#### Literature_References

```     None.
```

#### Author_and_Institution

```     W.M. Owen       (JPL)
```

#### Version

```    SPICELIB Version 1.0.2, 23-APR-2010 (NJB)

Header correction: assertions that the output
can overwrite the input have been removed.

SPICELIB Version 1.0.1, 10-MAR-1992 (WLT)

Comment section for permuted index source lines was added
`Wed Apr  5 17:47:45 2017`