Skip to content

Commit f6aa798

Browse files
authored
remove dupe tinymath section (#76093)
1 parent 2ed9200 commit f6aa798

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

docs/canvas/canvas-tinymath-functions.asciidoc

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -492,37 +492,6 @@ find the mean by index.
492492
|one or more numbers or arrays of numbers
493493
|===
494494

495-
*Returns*: `number` | `Array.<number>`. The maximum value of all numbers if
496-
`args` contains only numbers. Returns an array with the the maximum values at each
497-
index, including all scalar numbers in `args` in the calculation at each index if
498-
`args` contains at least one array.
499-
500-
*Throws*: `'Array length mismatch'` if `args` contains arrays of different lengths
501-
502-
*Example*
503-
[source, js]
504-
------------
505-
max(1, 2, 3) // returns 3
506-
max([10, 20, 30, 40], 15) // returns [15, 20, 30, 40]
507-
max([1, 9], 4, [3, 5]) // returns [max([1, 4, 3]), max([9, 4, 5])] = [4, 9]
508-
------------
509-
510-
[float]
511-
=== mean( ...args )
512-
513-
Finds the mean value of one of more numbers/arrays of numbers passed into the function.
514-
If at least one array of numbers is passed into the function, the function will
515-
find the mean by index.
516-
517-
[cols="3*^<"]
518-
|===
519-
|Param |Type |Description
520-
521-
|...args
522-
|number \| Array.<number>
523-
|one or more numbers or arrays of numbers
524-
|===
525-
526495
*Returns*: `number` | `Array.<number>`. The mean value of all numbers if `args`
527496
contains only numbers. Returns an array with the the mean values of each index,
528497
including all scalar numbers in `args` in the calculation at each index if `args`

0 commit comments

Comments
 (0)