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

csc

Returns the cosecant, 1/sin(x).

Where sine is zero, at multiples of π, it throws an error.

Notation

csc(x)

Write it in an expression: nerdamer('csc(pi/6)'), or in the Playground.

nerdamer.csc

nerdamer.csc(x: ExpressionInput): Expression

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

Examples

1/sin(π/6).

csc(pi/6)
// → 2
Open in Playground

← 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