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 moved.

This entry is documented with its primary interface. Open the documentation →

API/The nerdamer object
Function

nerdamer.mode

src/index.ts:1242
nerdamer.mode(...args: StatisticsInput[]): Expression

Returns the most frequent value. A tie remains symbolic as mode(...), matching the legacy behavior instead of selecting an arbitrary winner.

Parameters

NameTypeDescription
argsStatisticsInput[]—

Returns

Expression

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