33#include "implicit_f.inc"
42 INTEGER IQ, J, I, IJ, IA, IND, L, M, MQ, LQ, LM, LL, MM, ILQ, IMQ, IM, IL, ILR, IMR, JQ, K
43 my_real range, anorm, anrmx, thr, x, y, sinx, sinx2, cosx, cosx2, sincs
73 anorm = 1.414*sqrt(anorm)
74 anrmx = anorm*range/float(n)
86 IF (abs(a(lm))-thr >= zero)
THEN
90 x = half*(a(ll)-a(mm))
91 y = -a(lm)/sqrt(a(lm)*a(lm)+x*x)
97 sinx = y/sqrt(two*(one+(sqrt(one-y*y))))
99 cosx = sqrt(one - sinx2)
118 x = a(il)*cosx-a(im)*sinx
119 a(im) = a(il)*sinx+a(im)*cosx
126 x = r(ilr)*cosx-r(imr)*sinx
127 r(imr) = r(ilr)*sinx+r(imr)*cosx
132 y = a(ll)*cosx2+a(mm)*sinx2-x
133 x = a(ll)*sinx2+a(mm)*cosx2+x
134 a(lm) = (a(ll)-a(mm))*sincs+a(lm)*(cosx2-sinx2)
143 IF (l-(n-1) /= 0)
THEN
156 IF (thr-anrmx > 0)
THEN
180 IF (a(ll) >= a(mm)) cycle
195 anorm=sqrt(r(1)*r(1)+r(2)*r(2)+r(3)*r(3))
199 anorm=sqrt(r(4)*r(4)+r(5)*r(5)+r(6)*r(6))
203 r(7)=r(2)*r(6)-r(3)*r(5)
204 r(8)=r(3)*r(4)-r(1)*r(6)
205 r(9)=r(1)*r(5)-r(2)*r(4)
206 anorm=sqrt(r(7)*r(7)+r(8)*r(8)+r(9)*r(9))
subroutine valpr(a, r, n, mv)