mirror of
https://github.com/josdejong/mathjs.git
synced 2025-12-08 19:46:04 +00:00
17 lines
445 B
JavaScript
17 lines
445 B
JavaScript
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'
|
|
]
|
|
};
|