.TH "math" 3teegris "Sun Oct 28 2018" "Version 2.0" "Samsung Internal API reference" \" -*- nroff -*-
.ad l
.nh
.SH NAME
math \- Math library API
.SS "Macros"

.in +1c
.ti -1c
.RI "#define \fBisnan\fP(x)   _isnan(x)"
.br
.ti -1c
.RI "#define \fBM_E\fP   2\&.7182818284590452354"
.br
.ti -1c
.RI "#define \fBM_PI\fP   3\&.14159265358979323846"
.br
.ti -1c
.RI "#define \fBM_PI_2\fP   1\&.57079632679489661923"
.br
.ti -1c
.RI "#define \fBM_PI_4\fP   0\&.78539816339744830962"
.br
.in -1c
.SS "Functions"

.in +1c
.ti -1c
.RI "_const_ double \fBatan\fP (double x)"
.br
.RI "\fIArc tangent function\&. \fP"
.ti -1c
.RI "_const_ float \fBatanf\fP (float x)"
.br
.RI "\fIArc tangent function\&. \fP"
.ti -1c
.RI "_const_ double \fBatan2\fP (double y, double x)"
.br
.RI "\fIArc tangent function of two variables\&. \fP"
.ti -1c
.RI "_const_ float \fBatan2f\fP (float y, float x)"
.br
.RI "\fIArc tangent function of two variables\&. \fP"
.ti -1c
.RI "_const_ double \fBceil\fP (double x)"
.br
.RI "\fIceiling function: smallest integral value not less than argument \fP"
.ti -1c
.RI "_const_ float \fBceilf\fP (float x)"
.br
.RI "\fIceiling function: smallest integral value not less than argument \fP"
.ti -1c
.RI "_const_ double \fBpow\fP (double base, double \fBexp\fP)"
.br
.RI "\fICalculate the exponentiation\&. \fP"
.ti -1c
.RI "_const_ float \fBpowf\fP (float base, float \fBexp\fP)"
.br
.RI "\fICalculate the exponentiation\&. \fP"
.ti -1c
.RI "_const_ double \fBsqrt\fP (double x)"
.br
.RI "\fICalculate the square root of x\&. \fP"
.ti -1c
.RI "_const_ float \fBsqrtf\fP (float x)"
.br
.RI "\fICalculate the square root of x\&. \fP"
.ti -1c
.RI "_const_ double \fBfabs\fP (double x)"
.br
.RI "\fICalculate the absolute value of x\&. \fP"
.ti -1c
.RI "_const_ float \fBfabsf\fP (float x)"
.br
.RI "\fICalculate the absolute value of x\&. \fP"
.ti -1c
.RI "_const_ double \fBround\fP (double x)"
.br
.RI "\fICalculate the integral value that is the nearest to x\&. \fP"
.ti -1c
.RI "_const_ float \fBroundf\fP (float x)"
.br
.RI "\fICalculate the integral value that is the nearest to x\&. \fP"
.ti -1c
.RI "_const_ double \fBsin\fP (double x)"
.br
.RI "\fICalculate the sine of an angle of x radians\&. \fP"
.ti -1c
.RI "_const_ float \fBsinf\fP (float x)"
.br
.RI "\fICalculate the sine of an angle of x radians\&. \fP"
.ti -1c
.RI "_const_ double \fBcos\fP (double x)"
.br
.RI "\fICalculate the cosine of an angle of x radians\&. \fP"
.ti -1c
.RI "_const_ float \fBcosf\fP (float x)"
.br
.RI "\fICalculate the cosine of an angle of x radians\&. \fP"
.ti -1c
.RI "_const_ double \fBexp\fP (double x)"
.br
.RI "\fIbase-e exponential function \fP"
.ti -1c
.RI "_const_ float \fBexpf\fP (float x)"
.br
.RI "\fIbase-e exponential function \fP"
.ti -1c
.RI "_const_ double \fBlog\fP (double x)"
.br
.RI "\fICalculate the natural logarithm\&. \fP"
.ti -1c
.RI "_const_ float \fBlogf\fP (float x)"
.br
.RI "\fICalculate the natural logarithm\&. \fP"
.ti -1c
.RI "_const_ double \fBlogb\fP (double x)"
.br
.RI "\fICalculate exponent of a floating-point value\&. \fP"
.ti -1c
.RI "_const_ float \fBlogbf\fP (float x)"
.br
.RI "\fICalculate exponent of a floating-point value\&. \fP"
.ti -1c
.RI "_const_ double \fBfmax\fP (double x, double y)"
.br
.RI "\fIDetermine maximum of two floating-point numbers\&. \fP"
.ti -1c
.RI "_const_ float \fBfmaxf\fP (float x, float y)"
.br
.RI "\fIDetermine maximum of two floating-point numbers\&. \fP"
.ti -1c
.RI "_const_ double \fBfmin\fP (double x, double y)"
.br
.RI "\fIDetermine minimum of two floating-point numbers\&. \fP"
.ti -1c
.RI "_const_ float \fBfminf\fP (float x, float y)"
.br
.RI "\fIDetermine minimum of two floating-point numbers\&. \fP"
.ti -1c
.RI "_const_ double \fBscalbn\fP (double x, int \fBexp\fP)"
.br
.RI "\fIMultiply floating-point number by integral power of radix\&. \fP"
.ti -1c
.RI "_const_ float \fBscalbnf\fP (float x, int \fBexp\fP)"
.br
.RI "\fIMultiply floating-point number by integral power of radix\&. \fP"
.ti -1c
.RI "_const_ double \fBcopysign\fP (double x, double y)"
.br
.RI "\fICopy sign of a number\&. \fP"
.ti -1c
.RI "_const_ float \fBcopysignf\fP (float x, float y)"
.br
.RI "\fICopy sign of a number\&. \fP"
.ti -1c
.RI "_const_ double \fBfloor\fP (double x)"
.br
.RI "\fIGet largest integral value not greater than argument\&. \fP"
.ti -1c
.RI "_const_ float \fBfloorf\fP (float x)"
.br
.RI "\fIGet largest integral value not greater than argument\&. \fP"
.ti -1c
.RI "_const_ double \fBhypot\fP (double x, double y)"
.br
.RI "\fIEuclidean distance function\&. \fP"
.ti -1c
.RI "_const_ float \fBhypotf\fP (float x, float y)"
.br
.RI "\fIEuclidean distance function\&. \fP"
.ti -1c
.RI "double \fBmodf\fP (double x, double *iptr)"
.br
.RI "\fIextract signed integral and fractional values from floating-point number \fP"
.ti -1c
.RI "float \fBmodff\fP (float x, float *iptr)"
.br
.RI "\fIextract signed integral and fractional values from floating-point number \fP"
.in -1c
.SH "Detailed Description"
.PP 

.SH "Macro Definition Documentation"
.PP 
.SS "#define isnan(x)   _isnan(x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
\fBParameters:\fP
.RS 4
\fIx\fP - value to check for NaN 
.RE
.PP
\fBReturns:\fP
.RS 4
0 - is number, !0 - NaN 
.RE
.PP

.SS "#define M_E   2\&.7182818284590452354"

.PP
\fC#include <\fBmath\&.h\fP>\fPe - base of the natural logarithm 
.SS "#define M_PI   3\&.14159265358979323846"

.PP
\fC#include <\fBmath\&.h\fP>\fPpi - the ratio of a circle's circumference to its diameter 
.SS "#define M_PI_2   1\&.57079632679489661923"

.PP
\fC#include <\fBmath\&.h\fP>\fPpi/2 
.SS "#define M_PI_4   0\&.78539816339744830962"

.PP
\fC#include <\fBmath\&.h\fP>\fPpi/4 
.SH "Function Documentation"
.PP 
.SS "_const_ double atan (double x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Arc tangent function\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
arc tangent of function argument 
.RE
.PP

.SS "_const_ double atan2 (double y, double x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Arc tangent function of two variables\&. 
.PP
\fBParameters:\fP
.RS 4
\fIy\fP function argument 
.br
\fIx\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
principal value of the arc tangent of y/x in radians 
.RE
.PP

.SS "_const_ float atan2f (float y, float x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Arc tangent function of two variables\&. 
.PP
\fBParameters:\fP
.RS 4
\fIy\fP function argument 
.br
\fIx\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
principal value of the arc tangent of y/x in radians 
.RE
.PP

.SS "_const_ float atanf (float x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Arc tangent function\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
arc tangent of function argument 
.RE
.PP

.SS "_const_ double ceil (double x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
ceiling function: smallest integral value not less than argument 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
ceiling of x 
.RE
.PP

.SS "_const_ float ceilf (float x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
ceiling function: smallest integral value not less than argument 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
ceiling of x 
.RE
.PP

.SS "_const_ double copysign (double x, double y)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Copy sign of a number\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.br
\fIy\fP sign source 
.RE
.PP
\fBReturns:\fP
.RS 4
value whose absolute value matches that of \fCx\fP, but whose sign bit matches that of \fCy\fP 
.RE
.PP

.SS "_const_ float copysignf (float x, float y)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Copy sign of a number\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.br
\fIy\fP sign source 
.RE
.PP
\fBReturns:\fP
.RS 4
value whose absolute value matches that of \fCx\fP, but whose sign bit matches that of \fCy\fP 
.RE
.PP

.SS "_const_ double cos (double x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Calculate the cosine of an angle of x radians\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument in radians 
.RE
.PP
\fBReturns:\fP
.RS 4
the result of calculation 
.RE
.PP

.SS "_const_ float cosf (float x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Calculate the cosine of an angle of x radians\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument in radians 
.RE
.PP
\fBReturns:\fP
.RS 4
the result of calculation 
.RE
.PP

.SS "_const_ double exp (double x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
base-e exponential function 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument in radians 
.RE
.PP
\fBReturns:\fP
.RS 4
value of e raised to the power of x 
.RE
.PP

.SS "_const_ float expf (float x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
base-e exponential function 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument in radians 
.RE
.PP
\fBReturns:\fP
.RS 4
value of e raised to the power of x 
.RE
.PP

.SS "_const_ double fabs (double x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Calculate the absolute value of x\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
the result of calculation 
.RE
.PP

.SS "_const_ float fabsf (float x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Calculate the absolute value of x\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
the result of calculation 
.RE
.PP

.SS "_const_ double floor (double x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Get largest integral value not greater than argument\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
the floor of x 
.RE
.PP

.SS "_const_ float floorf (float x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Get largest integral value not greater than argument\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
the floor of x 
.RE
.PP

.SS "_const_ double fmax (double x, double y)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Determine maximum of two floating-point numbers\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.br
\fIy\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
maximal value of \fCx\fP or \fCy\fP 
.RE
.PP

.SS "_const_ float fmaxf (float x, float y)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Determine maximum of two floating-point numbers\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.br
\fIy\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
maximal value of \fCx\fP or \fCy\fP 
.RE
.PP

.SS "_const_ double fmin (double x, double y)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Determine minimum of two floating-point numbers\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.br
\fIy\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
minimal value of \fCx\fP or \fCy\fP 
.RE
.PP

.SS "_const_ float fminf (float x, float y)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Determine minimum of two floating-point numbers\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.br
\fIy\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
minimal value of \fCx\fP or \fCy\fP 
.RE
.PP

.SS "_const_ double hypot (double x, double y)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Euclidean distance function\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.br
\fIy\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
length of a right-angled triangle with sides of length x and y 
.RE
.PP

.SS "_const_ float hypotf (float x, float y)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Euclidean distance function\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.br
\fIy\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
length of a right-angled triangle with sides of length x and y 
.RE
.PP

.SS "_const_ double log (double x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Calculate the natural logarithm\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
the result of calculation 
.RE
.PP

.SS "_const_ double logb (double x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Calculate exponent of a floating-point value\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
the result of calculation 
.RE
.PP

.SS "_const_ float logbf (float x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Calculate exponent of a floating-point value\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
the result of calculation 
.RE
.PP

.SS "_const_ float logf (float x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Calculate the natural logarithm\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
the result of calculation 
.RE
.PP

.SS "double modf (double x, double * iptr)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
extract signed integral and fractional values from floating-point number 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.br
\fIiptr\fP integral part is stored in the location pointed to by iptr 
.RE
.PP
\fBReturns:\fP
.RS 4
return the fractional part of x 
.RE
.PP

.SS "float modff (float x, float * iptr)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
extract signed integral and fractional values from floating-point number 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.br
\fIiptr\fP integral part is stored in the location pointed to by iptr 
.RE
.PP
\fBReturns:\fP
.RS 4
return the fractional part of x 
.RE
.PP

.SS "_const_ double pow (double base, double exp)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Calculate the exponentiation\&. 
.PP
\fBParameters:\fP
.RS 4
\fIbase\fP base value 
.br
\fIexp\fP exponent value 
.RE
.PP
\fBReturns:\fP
.RS 4
base raised to the power exponent 
.RE
.PP

.SS "_const_ float powf (float base, float exp)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Calculate the exponentiation\&. 
.PP
\fBParameters:\fP
.RS 4
\fIbase\fP base value 
.br
\fIexp\fP exponent value 
.RE
.PP
\fBReturns:\fP
.RS 4
base raised to the power exponent 
.RE
.PP

.SS "_const_ double round (double x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Calculate the integral value that is the nearest to x\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
the result of calculation 
.RE
.PP

.SS "_const_ float roundf (float x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Calculate the integral value that is the nearest to x\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
the result of calculation 
.RE
.PP

.SS "_const_ double scalbn (double x, int exp)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Multiply floating-point number by integral power of radix\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.br
\fIexp\fP exponenta 
.RE
.PP
\fBReturns:\fP
.RS 4
result of calculation 
.RE
.PP

.SS "_const_ float scalbnf (float x, int exp)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Multiply floating-point number by integral power of radix\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.br
\fIexp\fP exponenta 
.RE
.PP
\fBReturns:\fP
.RS 4
result of calculation 
.RE
.PP

.SS "_const_ double sin (double x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Calculate the sine of an angle of x radians\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument in radians 
.RE
.PP
\fBReturns:\fP
.RS 4
the result of calculation 
.RE
.PP

.SS "_const_ float sinf (float x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Calculate the sine of an angle of x radians\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument in radians 
.RE
.PP
\fBReturns:\fP
.RS 4
the result of calculation 
.RE
.PP

.SS "_const_ double sqrt (double x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Calculate the square root of x\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
the result of calculation 
.RE
.PP

.SS "_const_ float sqrtf (float x)"

.PP
\fC#include <\fBmath\&.h\fP>\fP
.PP
Calculate the square root of x\&. 
.PP
\fBParameters:\fP
.RS 4
\fIx\fP function argument 
.RE
.PP
\fBReturns:\fP
.RS 4
the result of calculation 
.RE
.PP

.SH "Author"
.PP 
Generated automatically by Doxygen for Samsung Internal API reference from the source code\&.
