Function

vvlog1pf

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

Declaration

void vvlog1pf(float *, const float *, const int *);

Parameters

parameter 1

The output array, y.

parameter 2

The input array, x.

parameter 3

The number of elements in the arrays.

Discussion

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

vvexp

Calculates e raised to the power of each element in an array of double-precision values.

vvexpf

Calculates e raised to the power of each element in an array of single-precision values.

vvexp2

Calculates 2 raised to the power of each element in an array of double-precision values.

vvexp2f

Calculates 2 raised to the power of each element in an array of single-precision values.

vvexpm1

Calculates eˣ-1 for each element in an array of double-precision values.

vvexpm1f

Calculates eˣ-1 for each element in an array of single-precision values.

vvlog

Calculates the natural logarithm for each element in an array of double-precision values.

vvlogf

Calculates the natural logarithm for each element in an array of single-precision values.

vvlog1p

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

vvlog2

Calculates the base 2 logarithm of each element in an array of double-precision values.

vvlog2f

Calculates the base 2 logarithm of each element in an array of single-precision values.

vvlog10

Calculates the base 10 logarithm of each element in an array of double-precision values.

vvlog10f

Calculates the base 10 logarithm of each element in an array of single-precision values.

vvlogb

Calculates the unbiased exponent of each element in an array of double-precision values.

vvlogbf

Calculates the unbiased exponent of each element in an array of single-precision values.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software