TizenRT Libs&Environment  v2.0 M2

Provides APIs for Math. More...

Collaboration diagram for MATH:

Files

file  math.h
 Math APIs.
 

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...
 

Detailed Description

Provides APIs for Math.

Macro Definition Documentation

#define erfc (   x)    (1 - erf(x))

Definition at line 1035 of file math.h.

#define erfcl (   x)    (1 - erfl(x))

Definition at line 1046 of file math.h.

#define expm1 (   x)    (exp(x) - 1.0)

Definition at line 405 of file math.h.

#define expm1f (   x)    (expf(x) - 1.0)

exponential function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1

Definition at line 395 of file math.h.

#define expm1l (   x)    (expl(x) - 1.0)

Definition at line 416 of file math.h.

#define HUGE_VAL   INFINITY

Definition at line 118 of file math.h.

#define INFINITY   (1.0/0.0)

Definition at line 116 of file math.h.

#define isfinite (   x)    (!(isinf(x)) && (x != NAN))

Definition at line 122 of file math.h.

#define isinf (   x)    (((x) == INFINITY) || ((x) == -INFINITY))

Definition at line 121 of file math.h.

#define isnan (   x)    ((x) != (x))

Definition at line 120 of file math.h.

#define M_1_PI   0.3183098861837906715377675267450287

Definition at line 166 of file math.h.

#define M_2_PI   0.6366197723675813430755350534900574

Definition at line 167 of file math.h.

#define M_2_SQRTPI   1.1283791670955125738961589031215452

Definition at line 168 of file math.h.

#define M_E   2.7182818284590452353602874713526625

Definition at line 153 of file math.h.

#define M_LN10   2.3025850929940456840179914546843642

Definition at line 159 of file math.h.

#define M_LN2   0.6931471805599453094172321214581765

Definition at line 158 of file math.h.

#define M_LOG10E   0.4342944819032518276511289189166051

Definition at line 157 of file math.h.

#define M_LOG2E   1.4426950408889634073599246810018921

Definition at line 156 of file math.h.

#define M_PI   3.1415926535897932384626433832795029

Definition at line 163 of file math.h.

#define M_PI_2   1.5707963267948966192313216916397514

Definition at line 164 of file math.h.

#define M_PI_4   0.7853981633974483096156608458198757

Definition at line 165 of file math.h.

#define M_SQRT1_2   0.7071067811865475244008443621048490

Definition at line 155 of file math.h.

#define M_SQRT2   1.4142135623730950488016887242096981

Definition at line 154 of file math.h.

#define NAN   (0.0/0.0)

Definition at line 117 of file math.h.

#define signbit (   x)
Value:
( \
sizeof(x) == sizeof(float) ? (int)(__FLOAT_BITS(x) >> 31) : \
sizeof(x) == sizeof(double) ? (int)(__DOUBLE_BITS(x) >> 63) : \
(int)(__DOUBLE_BITS(x) >> 63))

Definition at line 146 of file math.h.

Function Documentation

double acos ( double  x)

arc cosine functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float acosf ( float  x)

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double acosh ( double  x)

inverse hyperbolic cosine functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float acoshf ( float  x)

inverse hyperbolic cosine functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double acoshl ( long double  x)

inverse hyperbolic cosine functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double acosl ( long double  x)

arc cosine functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double asin ( double  x)

arc sine function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float asinf ( float  x)

arc sine function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double asinh ( double  x)

inverse hyperbolic sine functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float asinhf ( float  x)

inverse hyperbolic sine functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double asinhl ( long double  x)

inverse hyperbolic sine functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double asinl ( long double  x)

arc sine function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double atan ( double  x)

arc tangent function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double atan2 ( double  y,
double  x 
)

arc tangent function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float atan2f ( float  y,
float  x 
)

arc tangent function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double atan2l ( long double  y,
long double  x 
)

arc tangent function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float atanf ( float  x)

arc cosine functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double atanh ( double  x)

inverse hyperbolic tangent functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float atanhf ( float  x)

inverse hyperbolic tangent functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double atanhl ( long double  x)

inverse hyperbolic tangent functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double atanl ( long double  x)

arc tangent function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double cbrt ( double  x)

cube root functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float cbrtf ( float  x)

cube root functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double cbrtl ( long double  x)

cube root functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double ceil ( double  x)

ceiling value function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float ceilf ( float  x)

ceiling value function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double ceill ( long double  x)

ceiling value function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double copysign ( double  x,
double  y 
)

number manipulation function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float copysignf ( float  x,
float  y 
)

number manipulation function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double copysignl ( long double  x,
long double  y 
)

number manipulation function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double cos ( double  x)

cosine function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float cosf ( float  x)

cosine function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double cosh ( double  x)

hyperbolic cosine functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float coshf ( float  x)

hyperbolic cosine functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double coshl ( long double  x)

hyperbolic cosine functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double cosl ( long double  x)

cosine function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double erf ( double  x)

error functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float erff ( float  x)

error functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double erfl ( long double  x)

error functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double exp ( double  x)

exponential function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double exp2 ( double  x)

exponential base 2 functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float exp2f ( float  x)

exponential base 2 functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double exp2l ( long double  x)

exponential base 2 functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float expf ( float  x)

exponential function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double expl ( long double  x)

exponential function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double fabs ( double  x)

absolute value function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
float fabsf ( float  x)

absolute value function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double fabsl ( long double  x)

absolute value function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double fdim ( double  x,
double  y 
)

compute positive difference between two floating-point numbers

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float fdimf ( float  x,
float  y 
)

compute positive difference between two floating-point numbers

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double fdiml ( long double  x,
long double  y 
)

compute positive difference between two floating-point numbers

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double floor ( double  x)

floor function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
float floorf ( float  x)

floor function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double floorl ( long double  x)

floor function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double fmax ( double  x,
double  y 
)

determine maximum numeric value of two floating-point numbers

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float fmaxf ( float  x,
float  y 
)

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double fmaxl ( long double  x,
long double  y 
)

determine maximum numeric value of two floating-point numbers

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double fmin ( double  x,
double  y 
)

determine minimum numeric value of two floating-point numbers

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float fminf ( float  x,
float  y 
)

determine minimum numeric value of two floating-point numbers

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double fminl ( long double  x,
long double  y 
)

determine minimum numeric value of two floating-point numbers

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double frexp ( double  x,
int *  exp 
)

extract mantissa and exponent from a double precision number

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float frexpf ( float  x,
int *  exp 
)

extract mantissa and exponent from a double precision number

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double frexpl ( long double  x,
int *  exp 
)

extract mantissa and exponent from a double precision number

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double hypot ( double  x,
double  y 
)

Euclidean distance function.

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float hypotf ( float  x,
float  y 
)

Euclidean distance function.

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double hypotl ( long double  x,
long double  y 
)

Euclidean distance function.

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double j0 ( double  x)

Bessel functions of the first kind.

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float j0f ( float  x)

returns Bessel functions of x of the first kind of orders 0

#include <tinyara/math.h>

Parameters
[in]xfloat type value which wants to calc j0
Returns
If x is a NaN, a NaN is returned. If x is too large in magnitude, or the result underflows, a range error occurs, and the return value is 0.
Since
TizenRT v1.1
double j1 ( double  x)

Bessel functions of the first kind.

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float j1f ( float  x)

returns Bessel functions of x of the first kind of orders 1

#include <tinyara/math.h>

Parameters
[in]xfloat type value which wants to calc j1
Returns
If x is a NaN, a NaN is returned. If x is too large in magnitude, or the result underflows, a range error occurs, and the return value is 0.
Since
TizenRT v1.1
double jn ( int  n,
double  x 
)

Bessel functions of the first kind.

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float jnf ( int  n,
float  x 
)

returns Bessel functions of x of the first kind of orders n

#include <tinyara/math.h>

Parameters
[in]nthe number which want to calc the first kind of orders
[in]xfloat type value which wants to calc jn
Returns
If x is a NaN, a NaN is returned. If x is too large in magnitude, or the result underflows, a range error occurs, and the return value is 0.
Since
TizenRT v1.1
double ldexp ( double  x,
int  n 
)

load exponent of a floating-point number

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float ldexpf ( float  x,
int  n 
)

load exponent of a floating-point number

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double ldexpl ( long double  x,
int  n 
)

load exponent of a floating-point number

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double log2 ( double  x)

compute base 2 logarithm functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float log2f ( float  x)

compute base 2 logarithm functions

  • *

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double log2l ( long double  x)

compute base 2 logarithm functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double nextafter ( double  x,
double  y 
)

next representable floating-point number

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float nextafterf ( float  x,
float  y 
)

next representable floating-point number

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double nextafterl ( long double  x,
long double  y 
)

next representable floating-point number

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double nexttoward ( double  x,
long double  y 
)

next representable floating-point number

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float nexttowardf ( float  x,
long double  y 
)

next representable floating-point number

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double nexttowardl ( long double  x,
long double  y 
)

next representable floating-point number

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double pow ( double  b,
double  e 
)

power function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
double remainder ( double  x,
double  y 
)

remainder function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float remainderf ( float  x,
float  y 
)

remainder function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double remainderl ( long double  x,
long double  y 
)

remainder function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double remquo ( double  x,
double  y,
int *  quo 
)

remainder functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float remquof ( float  x,
float  y,
int *  quo 
)

remainder functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double remquol ( long double  x,
long double  y,
int *  quo 
)

remainder functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double rint ( double  x)

round-to-nearest integral value

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float rintf ( float  x)

round-to-nearest integral value

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double rintl ( long double  x)

round-to-nearest integral value

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double round ( double  x)

round to the nearest integer value in a floating-point format

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float roundf ( float  x)

round to the nearest integer value in a floating-point format

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double roundl ( long double  x)

round to the nearest integer value in a floating-point format

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double scalbn ( double  x,
int  exp 
)

compute exponent using FLT_RADIX

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float scalbnf ( float  x,
int  exp 
)

compute exponent using FLT_RADIX

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double scalbnl ( long double  x,
int  exp 
)

compute exponent using FLT_RADIX

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double sin ( double  x)

sine function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float sinf ( float  x)

sine function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double sinh ( double  x)

hyperbolic sine functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float sinhf ( float  x)

hyperbolic sine functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double sinhl ( long double  x)

hyperbolic sine functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double sinl ( long double  x)

sine function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double sqrt ( double  x)

square root function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float sqrtf ( float  x)

square root function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double sqrtl ( long double  x)

square root function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double tan ( double  x)

tangent function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float tanf ( float  x)

tangent function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double tanh ( double  x)

hyperbolic tangent functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float tanhf ( float  x)

hyperbolic tangent functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double tanhl ( long double  x)

hyperbolic tangent functions

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double tanl ( long double  x)

tangent function

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double trunc ( double  x)

round to truncated integer value

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float truncf ( float  x)

round to truncated integer value

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
long double truncl ( long double  x)

round to truncated integer value

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
double y0 ( double  x)

Bessel functions of the second kind.

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float y0f ( float  x)

returns Bessel functions of x of the second kind of orders 0

#include <tinyara/math.h>

Parameters
[in]xfloat type value which wants to calc j0, it should be positive
Returns
If x is a NaN, a NaN is returned. If x is negative, it returns -HUGE_VALF. If x is 0.0, it returns -HUGE_VALF. If the result underflows, it returns 0.0. If the result overflows, it returns -HUGE_VALF.
Since
TizenRT v1.1
double y1 ( double  x)

Bessel functions of the second kind.

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float y1f ( float  x)

returns Bessel functions of x of the second kind of orders 1

#include <tinyara/math.h>

Parameters
[in]xfloat type value which wants to calc j1, it should be positive
Returns
If x is a NaN, a NaN is returned. If x is negative, it returns -HUGE_VALF. If x is 0.0, it returns -HUGE_VALF. If the result underflows, it returns 0.0. If the result overflows, it returns -HUGE_VALF.
Since
TizenRT v1.1
double yn ( int  n,
double  x 
)

Bessel functions of the second kind.

#include <tinyara/math.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.1
float ynf ( int  n,
float  x 
)

returns Bessel functions of x of the second kind of orders n

#include <tinyara/math.h>

Parameters
[in]nthe number which want to calc the second kind of orders
[in]xfloat type value which wants to calc jn, it should be positive
Returns
If x is a NaN, a NaN is returned. If x is negative, it returns -HUGE_VALF. If x is 0.0, it returns -HUGE_VALF. If the result underflows, it returns 0.0. If the result overflows, it returns -HUGE_VALF.
Since
TizenRT v1.1