vvlog1pf(_:_:_:)
Calculates log(1+x) for each element in an array of single-precision values.
Declaration
func vvlog1pf(_: UnsafeMutablePointer<Float>, _: UnsafePointer<Float>, _: UnsafePointer<Int32>)Discussion
Parameters:
- parameter 1
The output array, y.
- parameter 2
The input array, x.
- parameter 3
The number of elements in the arrays.
If x is nearly zero, the expression log(1+x) will be highly inaccurate due to floating point rounding errors in (1+x). This function provides an alternative, more accurate means to calculate this value.