Function reference · Trigonometry

sec

Computes the secant 1/cos(x).

Exact cosine values are inverted where possible. Inputs at which cosine is zero are undefined.

Examples

These examples use Nerdamer Notation.

Invert an exact cosine value.

sec(pi/3)
// → 2

Keep a symbolic secant.

sec(x)

Interfaces

The same operation is available through the interfaces below.

Nerdamer Notation · nerdamer API

Nerdamer Notation

Use this form inside input passed to nerdamer(...).

sec(arg1)

nerdamer.sec

Call the operation through the default nerdamer import.

nerdamer.sec(x: ExpressionInput): Expression

Parameters

NameTypeDescription
xExpressionInputThe angle in radians.

Returns

Expression — The secant of `x`.

Browse the nerdamer API →

← Back to Reference