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 · Math

count

Returns the number of entries in a vector, set, solution set or dictionary.

For anything else, the call is returned unevaluated.

Notation

count(arg1)

Write it in an expression: nerdamer('count([a,b,c])'), or in the Playground.

Examples

Three elements.

count([a,b,c])
// → 3
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