caltheta function

Calculates the angle of convergence