Nerdamer
Documentation Playground Showcase GitHub
DocumentationPlaygroundShowcaseGitHub
OverviewInstall & first stepsWays to use NerdamerWhat’s newMigrating from 1.x
Writing expressionsReserved namesScriptingUser-defined functionsResults & outputSets & solution setsAssumptionsSettingsWarningsConnecting functionsScripting examplesJavaScript examples
FunctionsThe nerdamer objectTypes & import paths
Contributing →
Documentation/Function reference
Function reference · Trigonometry

asec

Returns the inverse secant, acos(1/x).

Notation

asec(x)

Write it in an expression: nerdamer('asec(2)'), or in the Playground.

nerdamer.asec

nerdamer.asec(x: ExpressionInput): Expression

A method on the default import. Arguments can be strings, as in Notation.

Examples

An exact value.

asec(2)
// → (1/3)*pi
Open in Playground

Zero.

asec(1)
// → 0
Open in Playground

Also called

arcsec

← Back to Function reference

Nerdamer

Symbolic mathematics for JavaScript and TypeScript.

DocumentationNerdamer NotationNerdamer ScriptingThe nerdamer objectJavaScript / TypeScript API
ProjectPlaygroundReferences & citationsContributingGitHub
Copyright © 2013–2026 Martin Donk · Licensed under the Apache License 2.0