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