next up previous index
Next: V401 Find Compatible Up: CERNLIB Previous: V304 Search a

V306 Adjusting an Angle to Another Angle

Routine ID: V306
Author(s): J. Zoll, K.S. KölbigLibrary: KERNLIB
Submitter: Submitted: 15.03.1976
Language: FortranRevised: 15.02.1989

Function subprogram PROXIM computes, for two angles α,β

given as arguments, and by adding a suitable multiple of to β , an angle β* such that

α-π≤β*≤α+ π.

Structure:

FUNCTION subprogram
User Entry Names: PROXIM

Usage:

In any arithmetic expression,

    PROXIM(B,A)
has the value β* for B and A . PROXIM, B and A are of type REAL and in radians.

Notes:

The Fortran statement function

    PROXIM(B,A)=B+C1*ANINT(C2*(A-B))
with C1=2π, C2=1/C1 has the same effect.

V401


Janne Saarela
Mon Apr 3 15:06:23 METDST 1995