Skip to content

Commit 4e88b3b

Browse files
committed
chore: fix indentation
1 parent 644c486 commit 4e88b3b

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

src/function/arithmetic/add.js

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -24,39 +24,39 @@ export const createAdd = /* #__PURE__ */ factory(
2424
const matAlgo10xSids = createMatAlgo10xSids({ typed, DenseMatrix })
2525
const matrixAlgorithmSuite = createMatrixAlgorithmSuite({ typed, matrix, concat })
2626
/**
27-
* Add two or more values, `x + y`.
28-
* For matrices, the function is evaluated element wise.
29-
*
30-
* Syntax:
31-
*
32-
* math.add(x, y)
33-
* math.add(x, y, z, ...)
34-
*
35-
* Examples:
36-
*
37-
* math.add(2, 3) // returns number 5
38-
* math.add(2, 3, 4) // returns number 9
39-
*
40-
* const a = math.complex(2, 3)
41-
* const b = math.complex(-4, 1)
42-
* math.add(a, b) // returns Complex -2 + 4i
43-
*
44-
* math.add([1, 2, 3], 4) // returns Array [5, 6, 7]
45-
*
46-
* const c = math.unit('5 cm')
47-
* const d = math.unit('2.1 mm')
48-
* math.add(c, d) // returns Unit 52.1 mm
49-
*
50-
* math.add("2.3", "4") // returns number 6.3
51-
*
52-
* See also:
53-
*
54-
* subtract, sum
55-
*
56-
* @param {number | BigNumber | bigint | Fraction | Complex | Unit | Array | Matrix} x First value to add
57-
* @param {number | BigNumber | bigint | Fraction | Complex | Unit | Array | Matrix} y Second value to add
58-
* @return {number | BigNumber | bigint | Fraction | Complex | Unit | Array | Matrix} Sum of `x` and `y`
59-
*/
27+
* Add two or more values, `x + y`.
28+
* For matrices, the function is evaluated element wise.
29+
*
30+
* Syntax:
31+
*
32+
* math.add(x, y)
33+
* math.add(x, y, z, ...)
34+
*
35+
* Examples:
36+
*
37+
* math.add(2, 3) // returns number 5
38+
* math.add(2, 3, 4) // returns number 9
39+
*
40+
* const a = math.complex(2, 3)
41+
* const b = math.complex(-4, 1)
42+
* math.add(a, b) // returns Complex -2 + 4i
43+
*
44+
* math.add([1, 2, 3], 4) // returns Array [5, 6, 7]
45+
*
46+
* const c = math.unit('5 cm')
47+
* const d = math.unit('2.1 mm')
48+
* math.add(c, d) // returns Unit 52.1 mm
49+
*
50+
* math.add("2.3", "4") // returns number 6.3
51+
*
52+
* See also:
53+
*
54+
* subtract, sum
55+
*
56+
* @param {number | BigNumber | bigint | Fraction | Complex | Unit | Array | Matrix} x First value to add
57+
* @param {number | BigNumber | bigint | Fraction | Complex | Unit | Array | Matrix} y Second value to add
58+
* @return {number | BigNumber | bigint | Fraction | Complex | Unit | Array | Matrix} Sum of `x` and `y`
59+
*/
6060
return typed(
6161
name,
6262
{

0 commit comments

Comments
 (0)