aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/lz/amagr.x
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vops/lz/amagr.x')
-rw-r--r--sys/vops/lz/amagr.x13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/vops/lz/amagr.x b/sys/vops/lz/amagr.x
new file mode 100644
index 00000000..2db3c085
--- /dev/null
+++ b/sys/vops/lz/amagr.x
@@ -0,0 +1,13 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+# AMAG -- Return the magnitude of two vectors.
+
+procedure amagr (a, b, c, npix)
+
+real 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