aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/lz/amags.x
blob: 7f86bc75e472f338a5a47ed2e171e134289bee53 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.

# AMAG -- Return the magnitude of two vectors.

procedure amags (a, b, c, npix)

short	a[ARB], b[ARB], c[ARB]
int	npix, i

begin
	do i = 1, npix
		c[i] = sqrt (real(a[i] ** 2) + real(b[i] ** 2))
end