Skip to Main Content Skip to Search
Product Documentation

asec - Inverse secant; result in radians

Syntax

Y = asec(X)

Description

Y = asec(X) returns the inverse secant (arcsecant) for each element of X.

The asec function operates element-wise on arrays. The function's domains and ranges include complex values. All angles are in radians.

Examples

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

Definitions

The inverse secant can be defined as

See Also

asecd | asech | sec

  


» Learn more
» Download free kit
» Get trial software

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS