Function

vvsinf

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

Declaration

void vvsinf(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 +/-0, the result preserves the signed zero.

If x is +/-inf, the result is NaN.

The following code shows an example of using vvsinf.

float x[] = {-M_PI_2, 0, M_PI_2};
float y[3];
int n = 3;
 
vvsinf(y, x, &n);
 
NSLog(@"y: [%lf, %lf, %lf]", y[0], y[1], y[2]);

See Also

Array-Oriented Trigonometric Functions

vvsin

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

vvsinpi

Calculates the sine of pi multiplied by each element in an array of double-precision values.

vvsinpif

Calculates the sine of pi multiplied by each element in an array of single-precision values.

vvcos

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

vvcosf

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

vvcospi

Calculates the cosine of pi multiplied by each element in an array of double-precision values.

vvcospif

Calculates the cosine of pi multiplied by each element in an array of single-precision values.

vvcosisin

Calculates the cosine and sine of each element in an array of double-precision values.

vvcosisinf

Calculates the cosine and sine of each element in an array of single-precision values.

vvsincos

Calculates the cosine and sine of each element in an array of double-precision values.

vvsincosf

Calculates the cosine and sine of each element in an array of single-precision values.

vvtan

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

vvtanf

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

vvtanpi

Calculates the tangent of pi multiplied by each element in an array of double-precision values.

vvtanpif

Calculates the tangent of pi multiplied by each element in an array of single-precision values.

vvasin

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

vvasinf

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

vvacos

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

vvacosf

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

vvatan

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

vvatanf

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

vvatan2

Calculates the arctangent of each pair of elements in two arrays of double-precision values.

vvatan2f

Calculates the arctangent of each pair of elements in two arrays of single-precision values.