blob: 31fd69a0f2fd2a3dc1b0fa4f6349ea34dd4513ca (
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 amagl (a, b, c, npix)
long 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
|