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

difference

src/math/utils.ts:316
difference(a: ParserEntity, b: ParserEntity): ParserEntity

Returns the set of values in the first set but not in the second.

Parameters

NameTypeDescription
aParserEntity—
bParserEntity—

Returns

ParserEntity

Examples

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