asecInverse secant in radians
asec(A)A should be an array, which can be real or complex.A.A lying in A.asec(A) gives a complex number when abs(A) is smaller than 1.x = linspace(-1,1,8)
asec(x)
x =
-1.0000000 -0.7142857 -0.4285714 -0.1428571 0.1428571 0.4285714 0.7142857 1.0000000
ans =
Columns 1 to 3:
3.1415927 + 0.0000000i 3.1415927 + 0.8670147i 3.1415927 + 1.4909963i
Columns 4 to 6:
3.1415927 + 2.6339158i 0.0000000 + 2.6339158i 0.0000000 + 1.4909963i
Columns 7 to 8:
0.0000000 + 0.8670147i 0.0000000 + 0.0000000i