#include <math.h>
Link against:
libm.lib
Interface status: |
externallyDefinedApi |
|
HUGE_VAL __infinite(1.0)
Description
A positive double expression, not necessarily representable as a float. Used as an error value returned by the mathematics
library. HUGE_VAL evaluates to positive infinity on systems supporting the ANSI/IEEE Std 754:1985 standard.
Interface status: |
externallyDefinedApi |
|
FP_ILOGB0 (-__INT_MAX)
Description
The value of FP_ILOGB0 shall be either INT_MIN or - INT_MAX.
Interface status: |
externallyDefinedApi |
|
FP_ILOGBNAN __INT_MAX
Description
The value of FP_ILOGBNAN shall be either INT_MAX or INT_MIN.
Interface status: |
externallyDefinedApi |
|
HUGE_VALF (float)HUGE_VAL
Description
A positive float constant expression. Used as an error value returned by the mathematics library.
Interface status: |
externallyDefinedApi |
|
HUGE_VALL (long double)HUGE_VAL
Description
A positive long double constant expression. Used as an error value returned by the mathematics library.
Interface status: |
externallyDefinedApi |
|
NAN nanvalf()
Description
A constant expression of type float representing a quiet NaN. This symbolic constant is only defined if the implementation
supports quiet NaNs for the float type.
Interface status: |
externallyDefinedApi |
|
MATH_ERRNO 1
Description
macro shall expand to the integer constants 1
Interface status: |
externallyDefinedApi |
|
MATH_ERREXCEPT 2
Description
macro shall expand to the integer constants 1
Interface status: |
externallyDefinedApi |
|
math_errhandling MATH_ERREXCEPT
Description
Macro shall expand to an expression that has type int and the value MATH_ERRNO, MATH_ERREXCEPT, or the bitwise-inclusive OR
of both
Interface status: |
externallyDefinedApi |
|
FP_INFINITE 0x01
Description
Macro shall be defined for number classification. They represent the mutually-exclusive kinds of floating-point values. They
expand to integer constant expressions with distinct values. Additional implementation-defined floating-point classifications,
with macro definitions beginning with FP_ and an uppercase letter, may also be specified by the implementation.
Interface status: |
externallyDefinedApi |
|
FP_NAN 0x02
Description
Macro shall be defined for number classification. They represent the mutually-exclusive kinds of floating-point values. They
expand to integer constant expressions with distinct values. Additional implementation-defined floating-point classifications,
with macro definitions beginning with FP_ and an uppercase letter, may also be specified by the implementation.
Interface status: |
externallyDefinedApi |
|
FP_NORMAL 0x04
Description
Macro shall be defined for number classification. They represent the mutually-exclusive kinds of floating-point values. They
expand to integer constant expressions with distinct values. Additional implementation-defined floating-point classifications,
with macro definitions beginning with FP_ and an uppercase letter, may also be specified by the implementation.
Interface status: |
externallyDefinedApi |
|
FP_SUBNORMAL 0x08
Description
Macro shall be defined for number classification. They represent the mutually-exclusive kinds of floating-point values. They
expand to integer constant expressions with distinct values. Additional implementation-defined floating-point classifications,
with macro definitions beginning with FP_ and an uppercase letter, may also be specified by the implementation.
Interface status: |
externallyDefinedApi |
|
FP_ZERO 0x10
Description
Macro shall be defined for number classification. They represent the mutually-exclusive kinds of floating-point values. They
expand to integer constant expressions with distinct values. Additional implementation-defined floating-point classifications,
with macro definitions beginning with FP_ and an uppercase letter, may also be specified by the implementation.
Interface status: |
externallyDefinedApi |
|
fpclassify (x) ((sizeof (x) == sizeof (float)) ? __fpclassifyf(x) \
: (sizeof (x) == sizeof (double)) ? __fpclassifyd(x) \
: __fpclassifyl(x))
Description
The math.h
header shall define the following macros, where real floating indicates that the argument shall be an expression of real
floating type
Parameters
Interface status: |
externallyDefinedApi |
|
isfinite (x) ((sizeof (x) == sizeof (float)) ? __isfinitef(x) \
: (sizeof (x) == sizeof (double)) ? __isfinite(x) \
: __isfinitel(x))
Description
The math.h
header shall define the following macros, where real floating indicates that the argument shall be an expression of real
floating type
Parameters
Interface status: |
externallyDefinedApi |
|
isinf (x) ((sizeof (x) == sizeof (float)) ? __isinff(x) \
: (sizeof (x) == sizeof (double)) ? __isinf(x) \
: __isinfl(x))
Description
The math.h
header shall define the following macros, where real floating indicates that the argument shall be an expression of real
floating type
Parameters
Interface status: |
externallyDefinedApi |
|
isnan (x) ((sizeof (x) == sizeof (float)) ? __isnanf(x) \
: (sizeof (x) == sizeof (double)) ? __isnan(x) \
: __isnanl(x))
Description
The math.h
header shall define the following macros, where real floating indicates that the argument shall be an expression of real
floating type
Parameters
Interface status: |
externallyDefinedApi |
|
isnormal (x) ((sizeof (x) == sizeof (float)) ? __isnormalf(x) \
: (sizeof (x) == sizeof (double)) ? __isnormal(x) \
: __isnormall(x))
Description
The math.h
header shall define the following macros, where real floating indicates that the argument shall be an expression of real
floating type
Parameters
Interface status: |
externallyDefinedApi |
|
isgreater (x, y) (!isunordered((x), (y)) && (x) > (y))
Description
The math.h
header shall define the following macros, where real floating indicates that the argument shall be an expression of real
floating type
Parameters
Interface status: |
externallyDefinedApi |
|
isgreaterequal (x, y) (!isunordered((x), (y)) && (x) >= (y))
Description
The math.h
header shall define the following macros, where real floating indicates that the argument shall be an expression of real
floating type
Parameters
Interface status: |
externallyDefinedApi |
|
isless (x, y) (!isunordered((x), (y)) && (x) < (y))
Description
The math.h
header shall define the following macros, where real floating indicates that the argument shall be an expression of real
floating type
Parameters
Interface status: |
externallyDefinedApi |
|
islessequal (x, y) (!isunordered((x), (y)) && (x) <= (y))
Description
The math.h
header shall define the following macros, where real floating indicates that the argument shall be an expression of real
floating type
Parameters
Interface status: |
externallyDefinedApi |
|
islessgreater (x, y) (!isunordered((x), (y)) && \
((x) > (y) || (y) > (x)))
Description
The math.h
header shall define the following macros, where real floating indicates that the argument shall be an expression of real
floating type
Parameters
Interface status: |
externallyDefinedApi |
|
isunordered (x, y) (isnan(x) || isnan(y))
Description
The math.h
header shall define the following macros, where real floating indicates that the argument shall be an expression of real
floating type
Parameters
Interface status: |
externallyDefinedApi |
|
signbit (x) ((sizeof (x) == sizeof (float)) ? __signbitf(x) \
: (sizeof (x) == sizeof (double)) ? __signbit(x) \
: __signbitl(x))
Description
The math.h
header shall define the following macros, where real floating indicates that the argument shall be an expression of real
floating type
Parameters
Interface status: |
externallyDefinedApi |
|
M_E 2.7182818284590452354
Description
Defines the Value of e
Interface status: |
externallyDefinedApi |
|
M_LOG2E 1.4426950408889634074
Description
Defines the Value of log2e
Interface status: |
externallyDefinedApi |
|
M_LOG10E 0.43429448190325182765
Description
Defines the Value of log10e
Interface status: |
externallyDefinedApi |
|
M_LN2 0.69314718055994530942
Description
Defines the Value of loge2
Interface status: |
externallyDefinedApi |
|
M_LN10 2.30258509299404568402
Description
Defines the Value of loge10
Interface status: |
externallyDefinedApi |
|
M_PI 3.14159265358979323846
Description
Defines the Value of pi
Interface status: |
externallyDefinedApi |
|
M_PI_2 1.57079632679489661923
Description
Defines the Value of pi/2
Interface status: |
externallyDefinedApi |
|
M_PI_4 0.78539816339744830962
Description
Defines the Value of pi/4
Interface status: |
externallyDefinedApi |
|
M_1_PI 0.31830988618379067154
Description
Defines the Value of 1/pi
Interface status: |
externallyDefinedApi |
|
M_2_PI 0.63661977236758134308
Description
Defines the Value of 2/pi
Interface status: |
externallyDefinedApi |
|
M_2_SQRTPI 1.12837916709551257390
Description
Defines the Value of 2/sqrt(pi)
Interface status: |
externallyDefinedApi |
|
M_SQRT2 1.41421356237309504880
Description
Defines the Value of sqrt(2)
Interface status: |
externallyDefinedApi |
|
M_SQRT1_2 0.70710678118654752440
Description
Defines the Value of 1/sqrt(2)
Interface status: |
externallyDefinedApi |
|
MAXFLOAT ((float)3.40282346638528860e+38)
Description
Value of maximum non-infinite single-precision floating point number.
Interface status: |
externallyDefinedApi |
|
HUGE MAXFLOAT
Description
Defines to (float)3.40282346638528860e+38
Interface status: |
externallyDefinedApi |
|
typedef __double_t double_t;
Description
Double 8 bytes
Interface status: |
externallyDefinedApi |
|
typedef __float_t float_t;
Description
Float 4 bytes
IMPORT_C double nanval(void);
Description
Not a number value.
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C double atan(double);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C double atan2(double, double);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C double cos(double);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C double cosh(double);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C double exp(double);
Description
The exp2 and exp2f functions compute the base 2 exponential of the given argument x .
The expm1 and expm1f functions compute the value exp(x)-1 accurately even for tiny argument x .
The log and logf functions compute the value of the natural logarithm of argument x .
The log10 and log10f functions compute the value of the logarithm of argument x to base 10.
The log1p and log1pf functions compute the value of log(1+x) accurately even for tiny argument x .
The pow and powf functions compute the value of x to the exponent y .
Here the long double version APIs are aliases to the double version APIs. All apis <function>l behaves similiar to that <function>.
-
Examples
#include <math.h>
int main( void )
{
double x, y;
x = 1.0;
y = exp( x );
printf( "exp( %f ) = %f
", x, y );
y = expf( x );
printf( "expf( %f ) = %f
",x, y );
y = expl( x );
printf( "expl( %f ) = %f
",x, y );
x = 0.0;
y = exp2( x );
printf( "exp2( %f ) = %f
", x, y );
y = exp2f( x );
printf( "exp2f( %f ) = %f
",x, y );
y = exp2l( x );
printf( "exp2l( %f ) = %f
",x, y );
x = 1.0 ;
y = expm1( x );
printf( "expm1( %f ) = %f
", x, y );
y = expm1f( x );
printf( "expm1f( %f ) = %f
",x, y );
y = expm1l( x );
printf( "expm1l( %f ) = %f
",x, y );
}
Output
exp ( 1.0 ) = 2.718282
expf ( 1.0 ) = 2.718282
expl ( 1.0 ) = 2.718282
exp2 ( 0.0 ) = 1.000000
exp2f ( 0.0 ) = 1.000000
exp2l ( 0.0 ) = 1.000000
expm1 ( 1.0 ) = 1.718281
expm1f( 1.0 ) = 1.718281
expm1l( 1.0 ) = 1.718281
Notes:
The functions exp(x)-1 and log(1+x) are called expm1 and logp1 in BASIC on the Hewlett-Packard HP -71B and APPLE Macintosh,
EXP1 and LN1 in Pascal, exp1 and log1 in C on APPLE Macintoshes, where they have been provided to make sure financial calculations
of ((1+x)**n-1)/x, namely expm1(n*log1p(x))/x, will be accurate when x is tiny. They also provide accurate inverse hyperbolic
functions. The function pow (x, 0); returns x**0 = 1 for all x including x = 0, oo, and NaN . Previous implementations of
pow may have defined x**0 to be undefined in some or all of these cases. Here are reasons for returning x**0 = 1 always: Any
program that already tests whether x is zero (or infinite or NaN) before computing x**0 cannot care whether 0**0 = 1 or not.
Any program that depends upon 0**0 to be invalid is dubious anyway since that expression's meaning and, if invalid, its consequences
vary from one computer system to another. Some Algebra texts (e.g. Sigler's) define x**0 = 1 for all x, including x = 0. This
is compatible with the convention that accepts a[0] as the value of polynomial
p(x) = a[0]*x**0 + a[1]*x**1 + a[2]*x**2 +...+ a[n]*x**n
at x = 0 rather than reject a[0]*0**0 as invalid. Analysts will accept 0**0 = 1 despite that x**y can approach anything or
nothing as x and y approach 0 independently. The reason for setting 0**0 = 1 anyway is this:
If x(z) and y(z) are
any
functions analytic (expandable
in power series) in z around z = 0, and if there
x(0) = y(0) = 0, then x(z)**y(z) -> 1 as z -> 0.
If 0**0 = 1, then oo**0 = 1/0**0 = 1 too; and then NaN**0 = 1 too because x**0 = 1 for all finite and infinite x, i.e., independently
of x.
Parameters
Return value
double |
These functions will return the appropriate computation unless an error occurs or an argument is out of range. The functions
pow (x, y); and powf (x, y); return an NaN if x < 0 and y is not an integer. An attempt to take the logarithm of ±0 will
return infinity. An attempt to take the logarithm of a negative number will return a NaN.
|
|
Interface status: |
externallyDefinedApi |
|
IMPORT_C double frexp(double, int *);
Description
-
Detailed description The frexp , frexpf, and frexpl functions break a floating-point number into a normalized fraction and
an integral power of 2. They store the integer in the int object pointed to by eptr . As there is no long double is not supported
by Symbian, frexpl (is, aliased, to, the); frexp
-
Examples
void main( void )
{
double x1 = 4.0 , y;
int res;
y = frexp( x1, &res; );
printf( "frexp(%f , &res;):: Int Part: %d and Fractional Part: %f
", x1, res, y );
y = frexpf( x1, &res; );
printf( "frexpf(%f , &res;):: Int Part: %d and Fractional Part: %f
", x1, res, y );
y = frexpl( x1, &res; );
printf( "frexpl(%f , &res;):: Int Part: %d and Fractional Part: %f
", x1, res, y );
}
Output
frexp ( 4.0 , &res; ) :: Int Part: 3 and Fractional Part: 0.5
frexpf( 4.0, &res; ) :: Int Part: 3 and Fractional Part: 0.5
frexpl( 4.0, &res; ) :: Int Part: 3 and Fractional Part: 0.5
Parameters
Return value
double |
These functions return the value y , such that y is a double with magnitude in the interval [1/2, 1] or zero, and x equals
y times 2 raised to the power *eptr . If x is zero, both parts of the result are zero.
|
|
Interface status: |
externallyDefinedApi |
|
IMPORT_C double log(double);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C double log10(double);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C double pow(double, double);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C double sqrt(double);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C double fabs(double);
Description
The fabs , fabsf and fabsl functions compute the absolute value of a floating-point number x .
Examples
#include <stdio.h>
#include <math.h>
int main( void )
{
double dx = -3.141593, dy;
dy = fabs( dx );
printf( "fabs( %f ) = %f
", dx, dy );
dy = fabsf( dx );
printf( "fabsf( %f ) = %f
", dx, dy );
dy = fabsl( dx );
printf( "fabsl( %f ) = %f
", dx, dy );
}
Output
fabs( -3.141593 ) = 3.141593
fabsf( -3.141593 ) = 3.141593
fabsl( -3.141593 ) = 3.141593
Parameters
Return value
double |
The fabs , fabsf and fabsl functions return the absolute value of x .
|
|
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C double fmod(double, double);
Description
The fmod, fmodf, and fmodl functions compute the floating-point remainder of x / y . fmodl is an alias to the function fmod.
Examples
#include <math.h>
int main()
{
double x1 = 6.5, x2 = 2.25, y;
y = fmod( x1, x2 );
printf( "fmod(%f , %f) = %f
", x1, x2, y );
y = fmodf( x1, x2 );
printf( "fmodf(%f , %f) = %f
", x1, x2, y );
y = fmodl( x1, x2 );
printf( "fmodl(%f , %f) = %f
", x1, x2, y );
}
Output
fmod ( 6.4, 2 ) = 2.0
fmodf( 6.4, 2 ) = 2.0
fmodl( 6.4, 2 ) = 2.0
Parameters
Return value
double |
The fmod, fmodf, and fmodl functions return the value x - i * y , for some integer i such that, if y is non-zero, the result
has the same sign as x and magnitude less than the magnitude of y . If y is zero, whether a domain error occurs or the fmod
and fmodf function returns zero is implementation-defined.
|
|
Interface status: |
externallyDefinedApi |
|
IMPORT_C double asinh(double);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C double atanh(double);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C double erf(double);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C double erfc(double);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C double exp2(double);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C double expm1(double);
Description
The expm1 and expm1f functions compute the value exp(x)-1 accurately even for tiny argument x .
Parameters
Return value
fma(double,double,double)
Interface status: |
externallyDefinedApi |
|
IMPORT_C double fma(double, double, double);
Description
-
Examples
#include <math.h>
int main()
{
double x1 = 1, x2 = 2, x3 =3, y;
y = fma( x1, x2, x3 );
printf( "fma(%f , %f , %f) = %f
", x1, x2, x3, y );
y = fmaf( x1, x2, x3 );
printf( "fmaf(%f , %f , %f) = %f
", x1, x2, x3, y );
y = fmal( x1, x2, x3 );
printf( "fmal(%f , %f , %f) = %f
", x1, x2, x3, y );
}
Output
fma ( 1, 2, 3 ) = 5
fmaf( 1, 2, 3 ) = 5
fmal( 1, 2, 3 ) = 5
Implementation notes In general, these routines will behave as one would expect if x * y + z were computed with unbounded
precision and range, then rounded to the precision of the return type. However, on some platforms,
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C double hypot(double, double);
Description
Examples
void main( void )
{
double x1 = 3.0 , x2 = 4.0, y;
y = hypot( x1, x2 );
printf( "atan2(%f , %f) = %f
", x1, x2, y );
y = hypotf( x1, x2 );
printf( "atan2f(%f , %f) = %f
", x1, x2, y );
y = hypotl( x1, x2 );
printf( "hypotl(%f , %f) = %f
", x1, x2, y );
}
Output
hypot ( 3.0, 4.0 ) = 5.000000
hypotf( 3.0, 4.0 ) = 5.000000
hypotl( 3.0, 4.0 ) = 5.000000
Notes:
As might be expected, hypot (v, NaN); and hypot (NaN, v); are NaN for all finite v. But programmers might be surprised at
first to discover that hypot (±oo, NaN); = +oo. This is intentional; it happens because hypot (oo, v); = +oo for all v, finite
or infinite. Hence hypot (oo, v); is independent of v. Unlike the reserved operand fault on a VAX, the IEEE NaN is designed
to disappear when it turns out to be irrelevant, as it does in hypot (oo, NaN); hypot.
hypot (oo, v); = hypot (v, oo); = +oo for all v, including NaN.
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C int ilogb(double);
Description
Examples
#include <math.h>
int main( )
{
double e = 1024;
/*iLogb(), ilogbf() and ilogbl() */
y = ilogb( e );
printf( "ilogb( %f) = %f
", e, y );
y = ilogbf( e );
printf( "ilogbf( %f) = %f
", e, y );
y = ilogbl( e );
printf( "ilogbl( %f) = %f
", e, y );
}
Output
ilogb (1024) = 10.000000
ilogbf(1024) = 10.000000
ilogbl(1024) = 10.000000
Parameters
double |
The functions ilogb, ilogbf, and ilogbl return x ’s exponent, in integer format. ilogb (±oo);
|
|
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C double lgamma(double);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C long long llround(double);
Description
The lround function returns the integer nearest to its argument x , rounding away from zero in halfway cases. If the rounded
result is too large to be represented as a long value, the return value is undefined. When the rounded result is representable
as a long , the expression lround (x); is equivalent to round (x);( long) (although the former may be more efficient).
The llround , llroundf , llroundl , lroundf and lroundl functions differ from lround only in their input and output types.
Examples
#include <math.h>
int main( void )
{
double x1 = 1.5;
long long y;
int res ;
y = llround( x1 );
printf( "llround(%f) = %d
", x1, y );
y = llroundf( x1 );
printf( "llroundf(%f) = %d
", x1, y );
y = llroundl( x1 );
printf( "llroundl(%f) = %d
", x1, y );
res = lround( x1 );
printf( "lround(%f) = %d
", x1, res );
res = lroundf( x1 );
printf( "lroundf(%f) = %d
", x1, res );
res = lroundl( x1 );
printf( "lroundl(%f) = %d
", x1, res );
}
Output
llround ( 1.5 ) = 2.000000
llroundf( 1.5 ) = 2.000000
llroundl( 1.5 ) = 2.000000
lround ( 1.5 ) = 2.000000
lroundf( 1.5 ) = 2.000000
lroundl( 1.5 ) = 2.000000
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C double log1p(double);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C long lrint(double);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C long lround(double);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C double remainder(double, double);
Description
Parameters
Return value
See also:
remquo(double,double,int *)
Interface status: |
externallyDefinedApi |
|
IMPORT_C double remquo(double, double, int *);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C double rint(double);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C double j1(double);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C double jn(int, double);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C double scalb(double, double);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C double y0(double);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C double y1(double);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C double yn(int, double);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C double gamma(double);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C double fmin(double, double);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C double scalbn(double, int);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C double drem(double, double);
Description
-
Detailed description The drem dremf and the dreml functions compute the remainder of dividing x by y. The return value is
x - n * y, where n is the quotient of x / y, rounded to the nearest integer. If the quotient is 1/2, it is rounded to the
even number. The function dreml an alias to the function drem.
-
Examples
#include <math.h>
void main()
{
double x1 = 6.4, x2 = 2, y;
y = drem( x1, x2 );
printf( "drem(%f , %f) = %f
", x1, x2, y );
y = dremf( x1, x2 );
printf( "dremf(%f , %f) = %f
", x1, x2, y );
y = dreml( x1, x2 );
printf( "dreml(%f , %f) = %f
", x1, x2, y );
}
Output
drem ( 6.4, 2 ) = 0.4
dremf( 6.4, 2 ) = 0.4
dreml( 6.4, 2 ) = 0.4
Parameters
Return value
IMPORT_C int finite(double);
Description
-
Examples
#include <math.h>
int main( void )
{
double x;
int y;
x = 1.34565;
y = finite( x );
printf( "finite( %f ) = %d
", x, y );
y = finitef( x );
printf( "finitef( %f ) = %d
",x, y );
y = finitel( x );
printf( "finitel( %f ) = %d
",x, y );
}
Output
finite ( 1.34565 ) = 1
finitef( 1.34565 ) = 1
finitel( 1.34565 ) =
Parameters
double |
The finite finitef and finitel functions return a non-zero value if value is neither infinite nor a "not-a-number" (NaN) value,
and 0 otherwise.
|
|
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C int isnanf(float);
Description
test for infinity or not-a-number
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C double lgamma_r(double, int *);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C double significand(double);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float acosf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float asinf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float atanf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float atan2f(float, float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float cosf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float sinf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float tanf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float coshf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float sinhf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float tanhf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float exp2f(float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float expf(float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float expm1f(float);
Description
The expm1 and expm1f functions compute the value exp(x)-1 accurately even for tiny argument x .
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float frexpf(float, int *);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C int ilogbf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float log10f(float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float log1pf(float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float logf(float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float modff(float, float *);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float powf(float, float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float sqrtf(float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float ceilf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float fabsf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float floorf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float fmodf(float, float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float roundf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float erff(float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float erfcf(float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float hypotf(float, float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float lgammaf(float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float acoshf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float asinhf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float atanhf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float cbrtf(float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float logbf(float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float copysignf(float, float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C long long llrintf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C long long llroundf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C long lrintf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C long lroundf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float nearbyintf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float nextafterf(float, float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float remainderf(float, float);
Description
Parameters
Return value
See also:
remquof(float,float,int *)
Interface status: |
externallyDefinedApi |
|
IMPORT_C float remquof(float, float, int *);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float rintf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float scalblnf(float, long);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float scalbnf(float, int);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float truncf(float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float fdimf(float, float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float fmaf(float, float, float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float fmaxf(float, float);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float fminf(float, float);
Description
Parameters
Return value
See also:
IMPORT_C int finitef(float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float gammaf(float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float j0f(float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float j1f(float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float jnf(int, float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float scalbf(float, float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float y0f(float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float y1f(float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float ynf(int, float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float lgammaf_r(float, int *);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C float significandf(float);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C long double copysignl(long double, long double);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C long double fabsl(long double);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C long double fdiml(long double, long double);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C long double fmaxl(long double, long double);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C int ilogbl(long double);
Description
Parameters
Return value
See also:
Interface status: |
externallyDefinedApi |
|
IMPORT_C float nexttowardf(float, long double);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C long double scalblnl(long double, long);
Description
Parameters
Return value
Interface status: |
externallyDefinedApi |
|
IMPORT_C long double truncl(long double);
Description
Parameters
Return value
See also:
math.h Global variables