How are you using Nerdamer?
There are three ways to use Nerdamer. Pick the one that matches what you're writing.
New in this release: see What’s new.
Nerdamer Notation
Write mathematics as text and pass it to nerdamer('...').
factor(x^4-1)
solveeqs([x+y=5, x-y=1])
diff(sin(x)^2, x)
For: algebra, calculus, solving, vectors and matrices.
→Nerdamer Scripting Beta
Write small programs in the same text: variables, conditions, loops and your own functions.
block(
x: 4,
if(x > 3, x^2, x)
)
For: calculations with several steps.
→JavaScript / TypeScript API
Call Nerdamer from your code, and import its functions, classes and types.
import nerdamer from 'nerdamer';
import { Matrix } from 'nerdamer/structures';
const result = nerdamer('x^2+1');
For: using Nerdamer in an app.
factor(x^2-1): Notation. Writing if(...) or
block(...): Scripting. Writing JavaScript or TypeScript: the API. The three work together; see
Ways to use Nerdamer.
LANGUAGE setting; see Settings.
Guides
Getting started
Install Nerdamer and run your first expression.
→The nerdamer object
Everything you can call on nerdamer itself.
JavaScript examples
Longer examples that combine several operations.
→Migrating from 1.x
Update an app that uses Nerdamer 1.x.
→References & citations
The papers and books behind Nerdamer’s algorithms.
→Playground
Try Nerdamer in your browser, without installing anything.
→Contributing
How Nerdamer works inside, and how to develop and test a change.
