Inverse secant in radians
Y = asec(X)
The asec function operates element-wise on arrays. The function's domains and ranges include complex values. All angles are in radians.
Graph the inverse secant over the domains 1 ≤ x ≤ 5 and –5 ≤ x ≤ –1.
x1 = -5:0.01:-1; x2 = 1:0.01:5; plot(x1,asec(x1),x2,asec(x2)), grid on