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

17 lines (16 loc) 444 B
module.exports = { 'name': 'setMultiplicity', 'category': 'Set', 'syntax': [ 'setMultiplicity(element, set)' ], 'description': 'Count the multiplicity of an element in a multiset. A multi-dimension array will be converted to a single-dimension array before the operation.', 'examples': [ 'setMultiplicity(1, [1, 2, 2, 4])', 'setMultiplicity(2, [1, 2, 2, 4])' ], 'seealso': [ 'setDistinct', 'setSize' ] }