mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-18 14:59:29 +00:00
24 lines
511 B
Markdown
24 lines
511 B
Markdown
# Function sum
|
|
|
|
Compute the sum of a list of values In case of a (multi dimensional) array or matrix, the sum of all elements will be calculated.
|
|
|
|
sum(a, b, c, ...) sum(A)
|
|
|
|
|
|
### Parameters
|
|
|
|
Parameter | Type | Description
|
|
--------- | ---- | -----------
|
|
`args` | ... * | A single matrix or or multiple scalar values
|
|
|
|
### Returns
|
|
|
|
Type | Description
|
|
---- | -----------
|
|
* | res
|
|
|
|
|
|
|
|
|
|
<!-- Note: This file is automatically generated from source code comments. Changes made in this file will be overridden. -->
|