1 double precision function pinorm(x)
2 implicit real*8 (a-h,o-z)
4 c this function takes an angle (in radians) and puts it in the range of
10 pinorm = x - n * dwapi
11 if ( pinorm .gt. pi ) then
12 pinorm = pinorm - dwapi
13 else if ( pinorm .lt. - pi ) then
14 pinorm = pinorm + dwapi