XPath / XPath-Funktionen / Zahlenfunktionen / math:pow
![]() |
![]() |
➪ math:pow erfordert zwei Parameter x und y; geliefert wird das Ergebnis der y. Potenz zur Basis x.
Auf dieser Seite:Signatur:
math:pow($x as xs:double?, $y as numeric) as xs:double?
Siehe https://www.w3.org/TR/xpath-functions-31/#func-math-pow.
Siehe https://www.w3.org/TR/xpath-functions-30/#func-math-pow.
math:pow(2,5) ergibt 32.
rot | Exponent: 5 |
blau | Exponent: 4 |
grün | Exponent: 3 |
grau | Exponent: 2 |
Die rot dargestellte Kurve entspricht math:pow.
über =>, for-each und function:
(1 to 10) => for-each(function($p){ math:pow($p, 3)})
Alternative mit Bang!:
(1 to 10) ! (. * . * .)
Ergebnis:
1
8
27
64
125
216
343
512
729
1000
wg / 22. März 2020
Fragen? Anmerkungen? Tipps?
Bitte nehmen Sie Kontakt zu mir auf.
ᐅ math:sin
V.i.S.d.P.: Wilfried Grupe * Klus 6 * 37643 Negenborn
☎ 0151. 750 360 61 * eMail: info10@wilfried-grupe.de