Function

vvatan2

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

Declaration

void vvatan2(double *, const double *, const double *, const int *);

Parameters

parameter 1

The output array, z.

parameter 2

The input array, y.

parameter 3

The input array, x.

parameter 4

The number of elements in the arrays.

Discussion

The signs of both arguments are used to determine the quadrant of the calculated value.

The following special values of x and y produce the given value of z:

y

x

z (result)

+/-0

-0

+/-pi

+/-0

+0

+/-0

+/-0

<0

+/-pi

+/-0

>0

+/-0

>0

+/-0

+pi/2

<0

+/-0

-pi/2

+/-y

-inf

+/-pi

+/-y

+inf

+/-0

+/-inf

x

+/-pi/2

+/-inf

-inf

+/-3pi/4

+/-inf

+inf

+/-pi/4

See Also

Array-Oriented Trigonometric Functions

vvsin

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

vvsinf

Calculates the sine of each element in an array of single-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.

vvatan2f

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