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/nerdamer/structures
Function

intersection

src/math/utils.ts:304
intersection(...sets: ParserEntity[]): ParserEntity

Returns the set of values in every one of the given sets.

Parameters

NameTypeDescription
setsParserEntity[]—

Returns

ParserEntity

Examples

nerdamer('intersection({1,2},{2,3})').text(); // {2}
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