Difference between revisions of "Error Messages/40811"
(Created page with "= Warning Message = :The first parameter, «k», of Function Combinations(k,n) cannot be larger than the second parameter, «n». = Cause = You have probably inverted the ...") |
|||
Line 1: | Line 1: | ||
− | + | [[Category: Error messages]] | |
− | + | == Warning message == | |
− | + | :<code>''The first parameter, «k», of Function Combinations(k, n) cannot be larger than the second parameter, «n».''</code> | |
− | You have probably inverted the order of the parameters to [[Combinations]]. How many sets of size 3 are there among a collection of 5 elements? That would be <code>Combinations(3,5)</code>. Mathematical notation for combination often appear as | + | == Cause == |
+ | |||
+ | You have probably inverted the order of the parameters to [[Combinations]]. How many sets of size 3 are there among a collection of 5 elements? That would be <code>Combinations(3, 5)</code>. Mathematical notation for combination often appear as | ||
:<math>\left( \begin{array}{c} n \\ k \end{array} \right)</math> or <math>_nC_r</math> | :<math>\left( \begin{array}{c} n \\ k \end{array} \right)</math> or <math>_nC_r</math> | ||
− | which becomes <code> | + | which becomes <code>Combinations(k, n)</code> in Analytica. |
− | = | + | ==Remedies== |
+ | Change the parameters to the [[Combinations]] function so that the «k» parameter is less than or equal to «n». | ||
+ | == See Also == | ||
+ | * [[Function calls and parameters]] | ||
* [[Combinations]] | * [[Combinations]] | ||
* [[Permutations]] | * [[Permutations]] |
Latest revision as of 21:09, 4 April 2016
Warning message
The first parameter, «k», of Function Combinations(k, n) cannot be larger than the second parameter, «n».
Cause
You have probably inverted the order of the parameters to Combinations. How many sets of size 3 are there among a collection of 5 elements? That would be Combinations(3, 5)
. Mathematical notation for combination often appear as
- [math]\displaystyle{ \left( \begin{array}{c} n \\ k \end{array} \right) }[/math] or [math]\displaystyle{ _nC_r }[/math]
which becomes Combinations(k, n)
in Analytica.
Remedies
Change the parameters to the Combinations function so that the «k» parameter is less than or equal to «n».
See Also
Comments
Enable comment auto-refresher