mathjs
Version:
Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with dif
10 lines (9 loc) • 385 B
JavaScript
;
module.exports = {
'name': 'fraction',
'category': 'Construction',
'syntax': ['fraction(num)', 'fraction(num,den)'],
'description': 'Create a fraction from a number or from a numerator and denominator.',
'examples': ['fraction(0.125)', 'fraction(1, 3) + fraction(2, 5)'],
'seealso': ['bignumber', 'boolean', 'complex', 'index', 'matrix', 'string', 'unit']
};