aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/lz/amagd.x
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vops/lz/amagd.x')
-rw-r--r--sys/vops/lz/amagd.x13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/vops/lz/amagd.x b/sys/vops/lz/amagd.x
new file mode 100644
index 00000000..d4238cfd
--- /dev/null
+++ b/sys/vops/lz/amagd.x
@@ -0,0 +1,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