Trigonometric Functions

The Intel Math library supports the following trigonometric functions:

ACOS

Description: The acos function returns the principal value of the inverse cosine of x in the range [0, pi] radians for x in the interval [-1,1].

Calling interface:

long double acosl(long double x);
double acos(double x);
float acosf(float x);

ACOSD

Description: The acosd function returns the principal value of the inverse cosine of x in the interval [0,180] degrees for x in the interval [-1,1].

Calling interface:

long double acosdl(long double x);
double acosd(double x);
float acosdf(float x);

ASIN

Description: The asin function returns the principal value of the inverse sine of x in the range [-pi/2, +pi/2] radians for x in the interval [-1,1].

Calling interface:

long double asinl(long double x);
double asin(double x);
float asinf(float x);

ASIND

Description: The asind function returns the principal value of the inverse sine of x in the interval [-90,90] degrees for x in the interval [-1,1].

Calling interface:

long double asindl(long double x);
double asind(double x);
float asindf(float x);

ATAN

Description: The atan function returns the principal value of the inverse tangent of x in the range [-pi/2, +pi/2] radians.

Calling interface:

long double atanl(long double x);
double atan(double x);
float atanf(float x);

ATAN2

Description: The atan2 function returns the principal value of the inverse tangent of y/x in the range [-p, +pi] radians.

Calling interface:

long double atan2l(long double x, long double y);
double atan2(double x, double y);
float atan2f(float x, float y);

ATAND

Description: The atand function returns the principal value of the inverse tangent of x in the interval [-90,90] degrees.

Calling interface:

long double atandl(long double x);
double atand(double x);
float atandf(float x);

ATAND2

Description: The atand2 function returns the principal value of the inverse tangent of y/x in the range [-180, +180] degrees.

Calling interface:

long double atand2l(long double x, long double y); /* IA-32 only */
double atand2(double x, double y);
float atand2f(float x, float y);

COS

Description: The cos function returns the cosine of x measured in radians.

Calling interface:

long double cosl(long double x);
double cos(double x);
float cosf(float x);

COSD

Description: The cosd function returns the cosine of x measured in degrees.

Calling interface:

long double cosdl(long double x);
double cosd(double x);
float cosdf(float x);

COT

Description: The cot function returns the cotangent of x measured in radians.

Calling interface:

long double cotl(long double x);
double cot(double x);
float cotf(float x);

COTD

Description: The cotd function returns the cotangent of x measured in degrees.

Calling interface:

long double cotdl(long double x);
double cotd(double x);
float cotdf(float x);

SIN

Description: The sin function returns the sine of x measured in radians.

Calling interface:

long double sinl(long double x);
double sin(double x);
float sinf(float x);

SINCOS

Description: The sincos function returns both the sine and cosine of x measured in radians.

Calling interface:

void sincosl(long double x, long double *sinval, long double *cosval);
void sincos(double x, double *sinval, double *cosval);
void sincosf(float x, float *sinval, float *cosval);

SINCOSD

Description: The sincosd function returns both the sine and cosine of x measured in degrees.

Calling interface:

void sincosdl(long double x, long double *sinval, long double *cosval);
void sincosd(double x, double *sinval, double *cosval);
void sincosdf(float x, float *sinval, float *cosval);

SIND

Description: The sind function computes the sine of x measured in degrees.

Calling interface:

long double sindl(long double x);
double sind(double x);
float sindf(float x);

TAN

Description: The tan function returns the tangent of x measured in radians.

Calling interface:

long double tanl(long double x);
double tan(double x);
float tanf(float x);

TAND

Description: The tand function returns the tangent of x measured in degrees.

Calling interface:

long double tandl(long double x);
double tand(double x);
float tandf(float x);