Documentation/Calc Functions/KOMBINA

    From The Document Foundation Wiki
    This page is a translated version of the page Documentation/Calc Functions/COMBINA and the translation is 10% complete.
    Outdated translations are marked like this.


    Funktionsnavn:

    KOMBINA

    Kategori:

    Matematisk

    Resume:

    Returnerer antallet af kombinationer af et undersæt af elementer inklusive gentagelser.

    Syntaks:

    KOMBINA(Number1; Number2)

    Returnerer:

    Returnerer et positivt heltal.

    Argumenter:

    Tælling 1 er det positive antal elementer i sættet eller en reference til en celle, der indeholder tallet.

    Tælling 2 er det positive antal elementer, der skal udvælges af sættet, eller en reference til en celle, der indeholder tallet.

    • * Argumenter trunkeres til heltal, dvs. at hvis ét af argumenterne er ikke-numerisk, anvendes argumentets gulvværdi.
    • Hvis tælling 1 < 0, tælling 2 < 0 eller tælling 1 < tælling 2, returnerer KOMBINA en fejlværdi (Err: 502)
    • If either Number1 or Number2 is a non-integer value, then KOMBINA converts it to an integer by taking its floor value.
    • If either Number1 or Number2 is less than 0, then KOMBINA reports an invalid argument error (Fejl:502).
    • If Number1 < Number2, then KOMBINA reports an invalid argument error (Fejl:502).

    Yderligere oplysninger:

    • * En kombination er ethvert sæt eller undersæt af elementer, uanset deres interne rækkefølge. Kombinationer adskiller sig fra permutationer, hvis interne rækkefølge er væsentlig.
    • Antallet af kombinationer er som følger, hvor tælling 1 = N og tælling 2 = M:
    Combina.png
    • The formula specifying the number of possible combinations with repetition if selecting k items from a collection of n items (when order does not matter, unlike permutations), with kn, is as follows:
      [math]\displaystyle{ \text{COMBINA}(n, k)~=~\frac{(k+n-1)!}{k!(n-1)!} }[/math]
    • For more information, visit Wikipedia's Combination page.

    Eksempler:

    Formula Description Returns
    =KOMBINA(3; 2) From a group of 3 items, 2 can be chosen with repetitions in 6 ways. 6
    =KOMBINA(D1; D2)

    where cells D1 and D2 both contain the number 3.

    From a group of 3 items, 3 can be chosen with repetitions in 10 ways. 10
    =KOMBINA(7,6; 3,3)

    Truncate both arguments, to 7 and 3 respectively. From a group of 7 items, 3 can be chosen with repetitions in 84 ways.

    84

    Beslægtede LibreOffice-funktioner:

    KOMBIN

    PERMUT

    PERMUTA

    ODF standard:

    Section 6.16.17, part 2

    Tilsvarende Excel-funktioner:

    COMBINA since v.2013.