aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/amgs.gx
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vops/amgs.gx')
-rw-r--r--sys/vops/amgs.gx13
1 files changed, 13 insertions, 0 deletions
diff --git a/sys/vops/amgs.gx b/sys/vops/amgs.gx
new file mode 100644
index 00000000..eb7b3124
--- /dev/null
+++ b/sys/vops/amgs.gx
@@ -0,0 +1,13 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+# AMGS -- Return the square of the magnitude of two vectors.
+
+procedure amgs$t (a, b, c, npix)
+
+PIXEL a[ARB], b[ARB], c[ARB]
+int npix, i
+
+begin
+ do i = 1, npix
+ c[i] = a[i] ** 2 + b[i] ** 2
+end