Combinations
Table of Contents
| withoutRepetition() | COMBIN. | float|int|string |
|---|---|---|
| withRepetition() | COMBIN. | float|int|string |
Methods
withoutRepetition()
COMBIN.
public
static withoutRepetition(
$numObjs :
mixed
, $numInSet :
mixed
)
: float|int|string
Returns the number of combinations for a given number of items. Use COMBIN to determine the total possible number of groups for a given number of items.
Excel Function: COMBIN(numObjs,numInSet)
Parameters
- $numObjs : mixed
Number of different objects
- $numInSet : mixed
Number of objects in each combination
Return values
float|int|string —Number of combinations, or a string containing an error
withRepetition()
COMBIN.
public
static withRepetition(
$numObjs :
mixed
, $numInSet :
mixed
)
: float|int|string
Returns the number of combinations for a given number of items. Use COMBIN to determine the total possible number of groups for a given number of items.
Excel Function: COMBIN(numObjs,numInSet)
Parameters
- $numObjs : mixed
Number of different objects
- $numInSet : mixed
Number of objects in each combination
Return values
float|int|string —Number of combinations, or a string containing an error