Tizen RT Libs&Environment
v1.1 D4
|
Math APIs. More...
#include <tinyara/config.h>
#include <tinyara/compiler.h>
Go to the source code of this file.
Macros | |
#define | INFINITY (1.0/0.0) |
#define | NAN (0.0/0.0) |
#define | HUGE_VAL INFINITY |
#define | isnan(x) ((x) != (x)) |
#define | isinf(x) (((x) == INFINITY) || ((x) == -INFINITY)) |
#define | isfinite(x) (!(isinf(x)) && (x != NAN)) |
#define | signbit(x) |
#define | M_E 2.7182818284590452353602874713526625 |
#define | M_SQRT2 1.4142135623730950488016887242096981 |
#define | M_SQRT1_2 0.7071067811865475244008443621048490 |
#define | M_LOG2E 1.4426950408889634073599246810018921 |
#define | M_LOG10E 0.4342944819032518276511289189166051 |
#define | M_LN2 0.6931471805599453094172321214581765 |
#define | M_LN10 2.3025850929940456840179914546843642 |
#define | M_PI 3.1415926535897932384626433832795029 |
#define | M_PI_2 1.5707963267948966192313216916397514 |
#define | M_PI_4 0.7853981633974483096156608458198757 |
#define | M_1_PI 0.3183098861837906715377675267450287 |
#define | M_2_PI 0.6366197723675813430755350534900574 |
#define | M_2_SQRTPI 1.1283791670955125738961589031215452 |
#define | expm1f(x) (expf(x) - 1.0) |
exponential function More... | |
#define | expm1(x) (exp(x) - 1.0) |
#define | expm1l(x) (expl(x) - 1.0) |
#define | erfc(x) (1 - erf(x)) |
#define | erfcl(x) (1 - erfl(x)) |
Functions | |
float | ceilf (float x) |
ceiling value function More... | |
double | ceil (double x) |
ceiling value function More... | |
long double | ceill (long double x) |
ceiling value function More... | |
float | floorf (float x) |
floor function More... | |
double | floor (double x) |
floor function More... | |
long double | floorl (long double x) |
floor function More... | |
float | roundf (float x) |
round to the nearest integer value in a floating-point format More... | |
double | round (double x) |
round to the nearest integer value in a floating-point format More... | |
long double | roundl (long double x) |
round to the nearest integer value in a floating-point format More... | |
float | rintf (float x) |
round-to-nearest integral value More... | |
double | rint (double x) |
round-to-nearest integral value More... | |
long double | rintl (long double x) |
round-to-nearest integral value More... | |
float | fabsf (float x) |
absolute value function More... | |
double | fabs (double x) |
absolute value function More... | |
long double | fabsl (long double x) |
absolute value function More... | |
double | pow (double b, double e) |
power function More... | |
float | expf (float x) |
exponential function More... | |
double | exp (double x) |
exponential function More... | |
long double | expl (long double x) |
exponential function More... | |
float | exp2f (float x) |
exponential base 2 functions More... | |
double | exp2 (double x) |
exponential base 2 functions More... | |
long double | exp2l (long double x) |
exponential base 2 functions More... | |
float | log2f (float x) |
compute base 2 logarithm functions More... | |
double | log2 (double x) |
compute base 2 logarithm functions More... | |
long double | log2l (long double x) |
compute base 2 logarithm functions More... | |
float | cbrtf (float x) |
cube root functions More... | |
double | cbrt (double x) |
cube root functions More... | |
long double | cbrtl (long double x) |
cube root functions More... | |
float | sqrtf (float x) |
square root function More... | |
double | sqrt (double x) |
square root function More... | |
long double | sqrtl (long double x) |
square root function More... | |
float | ldexpf (float x, int n) |
load exponent of a floating-point number More... | |
double | ldexp (double x, int n) |
load exponent of a floating-point number More... | |
long double | ldexpl (long double x, int n) |
load exponent of a floating-point number More... | |
float | frexpf (float x, int *exp) |
extract mantissa and exponent from a double precision number More... | |
double | frexp (double x, int *exp) |
extract mantissa and exponent from a double precision number More... | |
long double | frexpl (long double x, int *exp) |
extract mantissa and exponent from a double precision number More... | |
float | sinf (float x) |
sine function More... | |
double | sin (double x) |
sine function More... | |
long double | sinl (long double x) |
sine function More... | |
float | cosf (float x) |
cosine function More... | |
double | cos (double x) |
cosine function More... | |
long double | cosl (long double x) |
cosine function More... | |
float | tanf (float x) |
tangent function More... | |
double | tan (double x) |
tangent function More... | |
long double | tanl (long double x) |
tangent function More... | |
float | asinf (float x) |
arc sine function More... | |
double | asin (double x) |
arc sine function More... | |
long double | asinl (long double x) |
arc sine function More... | |
float | acosf (float x) |
double | acos (double x) |
arc cosine functions More... | |
long double | acosl (long double x) |
arc cosine functions More... | |
float | atanf (float x) |
arc cosine functions More... | |
double | atan (double x) |
arc tangent function More... | |
long double | atanl (long double x) |
arc tangent function More... | |
float | atan2f (float y, float x) |
arc tangent function More... | |
double | atan2 (double y, double x) |
arc tangent function More... | |
long double | atan2l (long double y, long double x) |
arc tangent function More... | |
float | sinhf (float x) |
hyperbolic sine functions More... | |
double | sinh (double x) |
hyperbolic sine functions More... | |
long double | sinhl (long double x) |
hyperbolic sine functions More... | |
float | coshf (float x) |
hyperbolic cosine functions More... | |
double | cosh (double x) |
hyperbolic cosine functions More... | |
long double | coshl (long double x) |
hyperbolic cosine functions More... | |
float | tanhf (float x) |
hyperbolic tangent functions More... | |
double | tanh (double x) |
hyperbolic tangent functions More... | |
long double | tanhl (long double x) |
hyperbolic tangent functions More... | |
float | asinhf (float x) |
inverse hyperbolic sine functions More... | |
double | asinh (double x) |
inverse hyperbolic sine functions More... | |
long double | asinhl (long double x) |
inverse hyperbolic sine functions More... | |
float | acoshf (float x) |
inverse hyperbolic cosine functions More... | |
double | acosh (double x) |
inverse hyperbolic cosine functions More... | |
long double | acoshl (long double x) |
inverse hyperbolic cosine functions More... | |
float | atanhf (float x) |
inverse hyperbolic tangent functions More... | |
double | atanh (double x) |
inverse hyperbolic tangent functions More... | |
long double | atanhl (long double x) |
inverse hyperbolic tangent functions More... | |
float | erff (float x) |
error functions More... | |
double | erf (double x) |
error functions More... | |
long double | erfl (long double x) |
error functions More... | |
float | copysignf (float x, float y) |
number manipulation function More... | |
double | copysign (double x, double y) |
number manipulation function More... | |
long double | copysignl (long double x, long double y) |
number manipulation function More... | |
float | truncf (float x) |
round to truncated integer value More... | |
double | trunc (double x) |
round to truncated integer value More... | |
long double | truncl (long double x) |
round to truncated integer value More... | |
float | fdimf (float x, float y) |
compute positive difference between two floating-point numbers More... | |
double | fdim (double x, double y) |
compute positive difference between two floating-point numbers More... | |
long double | fdiml (long double x, long double y) |
compute positive difference between two floating-point numbers More... | |
float | fmaxf (float x, float y) |
double | fmax (double x, double y) |
determine maximum numeric value of two floating-point numbers More... | |
long double | fmaxl (long double x, long double y) |
determine maximum numeric value of two floating-point numbers More... | |
float | fminf (float x, float y) |
determine minimum numeric value of two floating-point numbers More... | |
double | fmin (double x, double y) |
determine minimum numeric value of two floating-point numbers More... | |
long double | fminl (long double x, long double y) |
determine minimum numeric value of two floating-point numbers More... | |
float | hypotf (float x, float y) |
Euclidean distance function. More... | |
double | hypot (double x, double y) |
Euclidean distance function. More... | |
long double | hypotl (long double x, long double y) |
Euclidean distance function. More... | |
float | scalbnf (float x, int exp) |
compute exponent using FLT_RADIX More... | |
double | scalbn (double x, int exp) |
compute exponent using FLT_RADIX More... | |
long double | scalbnl (long double x, int exp) |
compute exponent using FLT_RADIX More... | |
float | j0f (float x) |
returns Bessel functions of x of the first kind of orders 0 More... | |
float | j1f (float x) |
returns Bessel functions of x of the first kind of orders 1 More... | |
float | jnf (int n, float x) |
returns Bessel functions of x of the first kind of orders n More... | |
double | j0 (double x) |
Bessel functions of the first kind. More... | |
double | j1 (double x) |
Bessel functions of the first kind. More... | |
double | jn (int n, double x) |
Bessel functions of the first kind. More... | |
float | y0f (float x) |
returns Bessel functions of x of the second kind of orders 0 More... | |
float | y1f (float x) |
returns Bessel functions of x of the second kind of orders 1 More... | |
float | ynf (int n, float x) |
returns Bessel functions of x of the second kind of orders n More... | |
double | y0 (double x) |
Bessel functions of the second kind. More... | |
double | y1 (double x) |
Bessel functions of the second kind. More... | |
double | yn (int n, double x) |
Bessel functions of the second kind. More... | |
double | nextafter (double x, double y) |
next representable floating-point number More... | |
float | nextafterf (float x, float y) |
next representable floating-point number More... | |
long double | nextafterl (long double x, long double y) |
next representable floating-point number More... | |
double | nexttoward (double x, long double y) |
next representable floating-point number More... | |
float | nexttowardf (float x, long double y) |
next representable floating-point number More... | |
long double | nexttowardl (long double x, long double y) |
next representable floating-point number More... | |
double | remainder (double x, double y) |
remainder function More... | |
float | remainderf (float x, float y) |
remainder function More... | |
long double | remainderl (long double x, long double y) |
remainder function More... | |
double | remquo (double x, double y, int *quo) |
remainder functions More... | |
float | remquof (float x, float y, int *quo) |
remainder functions More... | |
long double | remquol (long double x, long double y, int *quo) |
remainder functions More... | |
Math APIs.
Definition in file math.h.