aboutsummaryrefslogtreecommitdiff
path: root/sys/vops/lz/asqrx.x
diff options
context:
space:
mode:
Diffstat (limited to 'sys/vops/lz/asqrx.x')
-rw-r--r--sys/vops/lz/asqrx.x20
1 files changed, 20 insertions, 0 deletions
diff --git a/sys/vops/lz/asqrx.x b/sys/vops/lz/asqrx.x
new file mode 100644
index 00000000..a529811c
--- /dev/null
+++ b/sys/vops/lz/asqrx.x
@@ -0,0 +1,20 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+# ASQR -- Compute the square root of a vector (generic). If the square root
+# is undefined (x < 0) a user supplied function is called to compute the value.
+
+procedure asqrx (a, b, npix, errfcn)
+
+complex a[ARB], b[ARB]
+int npix, i
+extern errfcn()
+complex errfcn()
+errchk errfcn
+
+begin
+ do i = 1, npix {
+ {
+ b[i] = sqrt (a[i])
+ }
+ }
+end