blob: 094f9285ba44e18f64150db793422a3d73015c66 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
# ASSQ -- Vector sum of squares.
real procedure assqs (a, npix)
real sum
short a[ARB]
int npix
int i
begin
sum = 0
do i = 1, npix
sum = sum + (a[i] ** 2)
return (sum)
end
|