vvpow(_:_:_:_:)
Raises each element in an array to the power of the corresponding element in a second array of double-precision values.
Declaration
func vvpow(_: UnsafeMutablePointer<Double>, _: UnsafePointer<Double>, _: UnsafePointer<Double>, _: UnsafePointer<Int32>)Discussion
Parameters:
- parameter 1
The output array, z.
- parameter 2
The exponent input array, y.
- parameter 3
The base input array, x.
- parameter 4
The number of elements in the arrays.
The following code shows an example of using vvpow(_:_:_:_:):
The following special values of x and y produce the given value of z:
x (base) | y (exponent) | z (result) |
|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|