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
8 lines • 397 B
JavaScript
export var cumSumDocs = {
name: 'cumsum',
category: 'Statistics',
syntax: ['cumsum(a, b, c, ...)', 'cumsum(A)'],
description: 'Compute the cumulative sum of all values.',
examples: ['cumsum(2, 3, 4, 1)', 'cumsum([2, 3, 4, 1])', 'cumsum([1, 2; 3, 4])', 'cumsum([1, 2; 3, 4], 1)', 'cumsum([1, 2; 3, 4], 2)'],
seealso: ['max', 'mean', 'median', 'min', 'prod', 'std', 'sum', 'variance']
};