| Samsung Internal API reference 2.0

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

Macros | Functions
math.h File Reference

Math library. More...

Go to the source code of this file.

## Macros
#define | NAN __builtin_nan("")
#define | INFINITY __builtin_inf()
#define | isnan(x) _isnan(x)
#define | isfinite(x) _isfinite(x)
#define | M_E 2.7182818284590452354
#define | M_PI 3.14159265358979323846
#define | M_PI_2 1.57079632679489661923
#define | M_PI_4 0.78539816339744830962
#define | FP_ILOGBNAN (-1-(int)(((unsigned)-1)>>1))
#define | FP_ILOGB0 FP_ILOGBNAN

## Functions
_const_ double | atan (double x)
| Arc tangent function. More...
_const_ float | atanf (float x)
| Arc tangent function. More...
_const_ double | atan2 (double y, double x)
| Arc tangent function of two variables. More...
_const_ float | atan2f (float y, float x)
| Arc tangent function of two variables. More...
_const_ double | ceil (double x)
| ceiling function: smallest integral value not less than argument More...
_const_ float | ceilf (float x)
| ceiling function: smallest integral value not less than argument More...
_const_ double | pow (double base, double exp)
| Calculate the exponentiation. More...
_const_ float | powf (float base, float exp)
| Calculate the exponentiation. More...
_const_ double | sqrt (double x)
| Calculate the square root of x. More...
_const_ float | sqrtf (float x)
| Calculate the square root of x. More...
_const_ double | fabs (double x)
| Calculate the absolute value of x. More...
_const_ float | fabsf (float x)
| Calculate the absolute value of x. More...
_const_ double | round (double x)
| Calculate the integral value that is the nearest to x. More...
_const_ float | roundf (float x)
| Calculate the integral value that is the nearest to x. More...
_const_ double | sin (double x)
| Calculate the sine of an angle of x radians. More...
_const_ float | sinf (float x)
| Calculate the sine of an angle of x radians. More...
_const_ double | cos (double x)
| Calculate the cosine of an angle of x radians. More...
_const_ float | cosf (float x)
| Calculate the cosine of an angle of x radians. More...
_const_ double | exp (double x)
| base-e exponential function More...
_const_ float | expf (float x)
| base-e exponential function More...
_const_ int | ilogb (double x)
| Calculate integer exponent of a floating-point value. More...
_const_ int | ilogbf (float x)
| Calculate integer exponent of a floating-point value. More...
_const_ int | ilogbl (long double x)
| Calculate integer exponent of a floating-point value. More...
_const_ double | log (double x)
| Calculate the natural logarithm. More...
_const_ float | logf (float x)
| Calculate the natural logarithm. More...
_const_ double | logb (double x)
| Calculate exponent of a floating-point value. More...
_const_ float | logbf (float x)
| Calculate exponent of a floating-point value. More...
_const_ long double | logbl (long double x)
| Calculate exponent of a floating-point value. More...
_const_ double | fmax (double x, double y)
| Determine maximum of two floating-point numbers. More...
_const_ float | fmaxf (float x, float y)
| Determine maximum of two floating-point numbers. More...
_const_ long double | fmaxl (long double x, long double y)
| Determine maximum of two floating-point numbers. More...
_const_ double | fmin (double x, double y)
| Determine minimum of two floating-point numbers. More...
_const_ float | fminf (float x, float y)
| Determine minimum of two floating-point numbers. More...
_const_ double | scalbn (double x, int exp)
| Multiply floating-point number by integral power of radix. More...
_const_ double | scalbnl (long double x, int exp)
| Multiply floating-point number by integral power of radix. More...
_const_ float | scalbnf (float x, int exp)
| Multiply floating-point number by integral power of radix. More...
_const_ double | copysign (double x, double y)
| Copy sign of a number. More...
_const_ float | copysignf (float x, float y)
| Copy sign of a number. More...
_const_ double | floor (double x)
| Get largest integral value not greater than argument. More...
_const_ float | floorf (float x)
| Get largest integral value not greater than argument. More...
_const_ double | hypot (double x, double y)
| Euclidean distance function. More...
_const_ float | hypotf (float x, float y)
| Euclidean distance function. More...
double | modf (double x, double *iptr)
| extract signed integral and fractional values from floating-point number More...
float | modff (float x, float *iptr)
| extract signed integral and fractional values from floating-point number More...

## Detailed Description

Math library.

Copyright
  (C) 2012-2019, Samsung Electronics Co., Ltd.