Documentation/Calc Functions/POTENS
Outdated translations are marked like this.
TDF LibreOffice Document Liberation Project Community Blogs Weblate Nextcloud Redmine Ask LibreOffice Donate
POTENS
Kategori:
Matematisk
Resume:
Returnerer et tal opløftet til et andet tal.
Syntaks:
POTENS(Base; Exponent)
Returnerer:
Returnerer et reelt tal, som er base opløftet til eksponens.
Argumenter:
Base er et reelt tal eller en reference til den celle, der indeholder det tal, som er base-værdien for funktionen POTENS.
Eksponent er et reelt tal eller en reference til den celler, der indeholder det tal, som basen opløftes til.
- Hvis eksponenten ikke er et heltal og basen er negativ, returnerer funktionen en numerisk fejlværdi (#NUM!).
- Hvis eksponenten er negativ og basen er 0, returnerer funktionen en numerisk fejlværdi (#NUM!).
- Hvis både eksponenten og basen er 0, returnerer funktionen 1.
Yderligere oplysninger:
Det samme resultat kan nås ved at bruge eksponentierings-operatoren ^: base^eksponent.
Eksempler:
Formula | Description | Returns |
---|---|---|
=POTENS(5; 3) | Here the function raises 5 to the power of 3. This is equal to [math]\displaystyle{ 5\times5\times5 }[/math]. | 125 |
=POTENS(D1; D2) where cells D1 and D2 contain the numbers 5.5 and 3.7 respectively. | Here the function raises 5.5 to the power of 3.7. | 548,708832614192 |
=POTENS(2; −3) | Here the function raises 2 to the power of -3. The value 2-3 is equal to [math]\displaystyle{ \frac{1}{2^3} }[/math] or [math]\displaystyle{ \frac{1}{8} }[/math]. | 0,125 |
=POTENS(−5; 3) | Here the function raises -5 to the power of 3. This is equal to [math]\displaystyle{ -5 \times -5 \times -5 }[/math]. | −125 |
=POTENS(−3; −4) | Here the function raises -3 to the power of -4. This is equal to [math]\displaystyle{ \frac{1}{(-3)^4} }[/math] or [math]\displaystyle{ \frac{1}{81} }[/math]. | 0,012345679012346 |
Beslægtede LibreOffice-funktioner:
ODF standard:
Tilsvarende Excel-funktioner:
POTENS