pow(_:_:)
x
raised to the nth power.
static func pow(_ x: Self, _ n: Int) -> Self
The edge-cases of this function are defined in terms of repeated multiplication or division, rather than exp(n log x). In particular, Float.pow(0, 0)
is 1.
See also sqrt()
and root()
.