Contents

vvlog1p(_:_:_:)

Calculates log(1+x) for each element in an array of double-precision values.

Declaration

func vvlog1p(_: UnsafeMutablePointer<Double>, _: UnsafePointer<Double>, _: 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.

See Also

Array-Oriented Exponential and Logarithmic Functions