aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/lz/amagd.x
blob: d4238cfdd6c17a9cd09cc6824eebff03e36aa49f (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 amagd (a, b, c, npix)

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

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