AVR Libc Home Page | AVR Libc Development Pages | |||
Main Page | FAQ | Library Reference | Additional Documentation | Example Projects |
#include <math.h>
This header file declares basic mathematics constants and functions.
libm.a
. See also the related FAQ entry.
Defines | |
#define | M_PI 3.141592653589793238462643 |
#define | M_SQRT2 1.4142135623730950488016887 |
Functions | |
double | cos (double __x) __ATTR_CONST__ |
double | fabs (double __x) __ATTR_CONST__ |
double | fmod (double __x, double __y) __ATTR_CONST__ |
double | modf (double __value, double *__iptr) |
double | sin (double __x) __ATTR_CONST__ |
double | sqrt (double __x) __ATTR_CONST__ |
double | tan (double __x) __ATTR_CONST__ |
double | floor (double __x) __ATTR_CONST__ |
double | ceil (double __x) __ATTR_CONST__ |
double | frexp (double __value, int *__exp) |
double | ldexp (double __x, int __exp) __ATTR_CONST__ |
double | exp (double __x) __ATTR_CONST__ |
double | cosh (double __x) __ATTR_CONST__ |
double | sinh (double __x) __ATTR_CONST__ |
double | tanh (double __x) __ATTR_CONST__ |
double | acos (double __x) __ATTR_CONST__ |
double | asin (double __x) __ATTR_CONST__ |
double | atan (double __x) __ATTR_CONST__ |
double | atan2 (double __y, double __x) __ATTR_CONST__ |
double | log (double __x) __ATTR_CONST__ |
double | log10 (double __x) __ATTR_CONST__ |
double | pow (double __x, double __y) __ATTR_CONST__ |
int | isnan (double __x) __ATTR_CONST__ |
int | isinf (double __x) __ATTR_CONST__ |
double | square (double __x) __ATTR_CONST__ |
|
The constant |
|
The square root of 2. |
|
The acos() function computes the principal value of the arc cosine of |
|
The asin() function computes the principal value of the arc sine of |
|
The atan() function computes the principal value of the arc tangent of |
|
The atan2() function computes the principal value of the arc tangent of |
|
The ceil() function returns the smallest integral value greater than or equal to |
|
The cos() function returns the cosine of |
|
The cosh() function returns the hyperbolic cosine of |
|
The exp() function returns the exponential value of |
|
The fabs() function computes the absolute value of a floating-point number |
|
The floor() function returns the largest integral value less than or equal to |
|
The function fmod() returns the floating-point remainder of |
|
The frexp() function breaks a floating-point number into a normalized fraction and an integral power of 2. It stores the integer in the
The frexp() function returns the value |
|
The function isinf() returns 1 if the argument |
|
The function isnan() returns 1 if the argument |
|
The ldexp() function multiplies a floating-point number by an integral power of 2.
The ldexp() function returns the value of If the resultant value would cause an overflow, the global variable errno is set to ERANGE, and the value NaN is returned. |
|
The log() function returns the natural logarithm of argument If the argument is less than or equal 0, a domain error will occur. |
|
The log10() function returns the logarithm of argument If the argument is less than or equal 0, a domain error will occur. |
|
The modf() function breaks the argument
The modf() function returns the signed fractional part of |
|
The function pow() returns the value of |
|
The sin() function returns the sine of |
|
The sinh() function returns the hyperbolic sine of |
|
The sqrt() function returns the non-negative square root of |
|
The function square() returns
|
|
The tan() function returns the tangent of |
|
The tanh() function returns the hyperbolic tangent of |