ReferenceFunctionsMath Functions
SEC
Returns the secant of an angle, defined as `1 / COS(angle)`.
Summary
Use SEC for reciprocal-cosine calculations in radian-based formulas.
Remarks
- Domain: valid for all real angles except where
COS(angle) = 0. - Radians: input is interpreted in radians.
- Errors: returns
#DIV/0!near odd multiples ofPI()/2.
Examples
Secant at zero
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
1
Singularity at PI over 2
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
#DIV/0!
Related functions
FAQ
When does SEC return #DIV/0!?
SEC returns #DIV/0! when COS(angle) is effectively zero.
Runtime metadata
Category
Math
Signature
SEC(arg1: Number)Arity
min 1, max 1
Arguments
arg1Number · Scalar · coercion NumberLenientText
Caps
PUREELEMENTWISENUMERIC_ONLY
Source