UNPKG

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

19 lines (18 loc) 470 B
export const createUnitDocs = { name: 'createUnit', category: 'Construction', syntax: [ 'createUnit(definitions)', 'createUnit(name, definition)' ], description: 'Create a user-defined unit and register it with the Unit type.', examples: [ 'createUnit("foo")', 'createUnit("knot", {definition: "0.514444444 m/s", aliases: ["knots", "kt", "kts"]})', 'createUnit("mph", "1 mile/hour")' ], seealso: [ 'unit', 'splitUnit' ] }