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

int	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