For a complex number of the form a+bi, IMSEC implements the following equation:
However, IMSEC determines if b=0 and in this case simply returns 1/cos(a).