docs/core/index.md
The core of math.js is the math namespace containing all functions and constants. There are three ways to do calculations in math.js:
math.add(math.sqrt(4), 2).math.evaluate('sqrt(4) + 2')math.chain(4).sqrt().add(2).math.js can be configured using the math.config(), see page Configuration.
math.js can be extended with new functions and constants using the function math.import(), see page Extension.
To persist or exchange data structures like matrices and units, the data types of math.js can be stringified as JSON. This is explained on the page Serialization.