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

intersects

src/math/utils.ts:328
intersects(a: ParserEntity, b: ParserEntity): ParserEntity

Returns 1 when the two sets have a value in common and 0 when they don't.

Parameters

NameTypeDescription
aParserEntity—
bParserEntity—

Returns

ParserEntity

Examples

nerdamer('intersects({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