·  Home
+   man pages
 -> Linux -> FreeBSD -> OpenBSD -> NetBSD -> Tru64 Unix -> HP-UX 11i -> IRIX
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

man pages->IRIX man pages -> complib/drscl (3)
 Title
 Content
 Arch
 Section All Sections 1 - General Commands 2 - System Calls 3 - Subroutines 4 - Special Files 5 - File Formats 6 - Games 7 - Macros and Conventions 8 - Maintenance Commands 9 - Kernel Interface n - New Commands

## X(1)

### Contents

```
DRSCL(3F)							     DRSCL(3F)

```

### NAME[Toc][Back]

```     DRSCL - multiplie an n-element real vector	x by the real scalar 1/a
```

### SYNOPSIS[Toc][Back]

```     SUBROUTINE	DRSCL( N, SA, SX, INCX )

INTEGER       INCX, N

DOUBLE	       PRECISION SA

DOUBLE	       PRECISION SX( * )
```

### PURPOSE[Toc][Back]

```     DRSCL multiplies an n-element real	vector x by the	real scalar 1/a.  This
is	done without overflow or underflow as long as
the final result x/a does not overflow or underflow.

```

### ARGUMENTS[Toc][Back]

```     N	     (input) INTEGER
The number	of components of the vector x.

SA	     (input) DOUBLE PRECISION
The scalar	a which	is used	to divide each component of x.	SA
must be >=	0, or the subroutine will divide by zero.

SX	     (input/output) DOUBLE PRECISION array, dimension
(1+(N-1)*abs(INCX)) The n-element vector x.

INCX    (input) INTEGER
The increment between successive values of	the vector SX.	> 0:
S
and SX(1+(i-1)*INCX) = x(i),	   1< i<= n
DRSCL(3F)							     DRSCL(3F)

```

### NAME[Toc][Back]

```     DRSCL - multiplie an n-element real vector	x by the real scalar 1/a
```

### SYNOPSIS[Toc][Back]

```     SUBROUTINE	DRSCL( N, SA, SX, INCX )

INTEGER       INCX, N

DOUBLE	       PRECISION SA

DOUBLE	       PRECISION SX( * )
```

### PURPOSE[Toc][Back]

```     DRSCL multiplies an n-element real	vector x by the	real scalar 1/a.  This
is	done without overflow or underflow as long as
the final result x/a does not overflow or underflow.

```

### ARGUMENTS[Toc][Back]

```     N	     (input) INTEGER
The number	of components of the vector x.

SA	     (input) DOUBLE PRECISION
The scalar	a which	is used	to divide each component of x.	SA
must be >=	0, or the subroutine will divide by zero.

SX	     (input/output) DOUBLE PRECISION array, dimension
(1+(N-1)*abs(INCX)) The n-element vector x.

INCX    (input) INTEGER
The increment between successive values of	the vector SX.	> 0:
S
and SX(1+(i-1)*INCX) = x(i),	   1< i<= n

PPPPaaaaggggeeee 1111```
[ Back ]
Similar pages