# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

# ARCP -- Reciprocal of a constant divided by a vector.  No divide by zero
# checking is performed.

procedure arcp$t (a, b, c, npix)

PIXEL	a		# constant numerator
PIXEL	b[ARB]		# vector denominator
PIXEL	c[ARB]		# output vector
int	npix
int	i

begin
	if (a == 0$f) {
	    call aclr$t (c, npix)
	} else if (a == 1$f) {
	    do i = 1, npix
		c[i] = 1$f / b[i]
	} else {
	    do i = 1, npix
		c[i] = a / b[i]
	}
end
