Math.js is an extensive math library for JavaScript and Node.js featuring a flexible expression parser, symbolic computation, and support for numbers, big numbers, complex numbers, fractions, units, and matrices.
84
Unit conversions (to, toBest)
Uses math.unit
100%
100%
Uses to() function
100%
100%
Uses toBest() function
0%
50%
Handles multiple unit types
100%
100%
Basic trigonometry (sin, cos, tan, asin, acos, atan, atan2)
Forward trigonometry
0%
100%
Inverse trigonometry
0%
75%
Two-argument arctangent
0%
0%
Degree conversion
0%
0%
Law of cosines
0%
100%
Law of sines
0%
100%
Context-aware simplification (real, positive, complex contexts)
Uses simplify function
40%
60%
Context option usage
0%
0%
Parses expressions correctly
100%
100%
Handles multiple contexts
100%
100%
Converts output format
100%
100%
Automatic type conversions between compatible types
Import mathjs functions
100%
100%
Use mathjs add
100%
80%
Use mathjs multiply
100%
80%
Use mathjs divide
100%
80%
Type constructors usage
100%
100%
No manual conversion
0%
0%
Import and extensibility (math.import, math.create)
Creates mathjs instance
100%
100%
Uses math.import()
100%
100%
Implements geometricMean
50%
25%
Implements harmonicMean
50%
25%
Functions work in expressions
100%
100%
Relational operators (equal, unequal, larger, smaller, compare)
Uses mathjs equal
0%
100%
Uses mathjs unequal
0%
0%
Uses mathjs larger
0%
100%
Uses mathjs smaller
0%
100%
Uses mathjs largerEq/smallerEq
0%
100%
Uses mathjs compare
0%
100%
Handles multiple types
100%
100%
Parser class with persistent state
Parser instance creation
100%
100%
Expression evaluation
100%
100%
Variable persistence
100%
100%
Function definitions
100%
100%
State clearing
100%
100%
Variable retrieval
100%
100%
User-defined functions in expressions
Uses parser instance
40%
100%
Function definition via evaluate
16%
100%
Expression evaluation
100%
100%
Handles multiple parameters
75%
100%
Expression parsing (parse, evaluate, compile)
Uses parse function
100%
100%
Uses evaluate function
100%
100%
Uses compile function
100%
100%
Uses parser function
100%
100%
Advanced combinatorics (Stirling numbers, Bell numbers, Catalan numbers)
Uses stirlingS2 function
0%
100%
Uses bellNumbers function
0%
100%
Uses catalan function
0%
100%
Proper error handling
100%
100%
Install with Tessl CLI
npx tessl i tessl/npm-mathjs