MentOS
0.8.0
The Mentoring Operating System
|
Macros | |
#define | MAXPOWTWO 4.503599627370496000E+15 |
Max power for forward and reverse projections. | |
Functions | |
double | round (double x) |
Returns the integral value that is nearest to x, with halfway cases rounded away from zero. More... | |
double | floor (double x) |
Rounds x downward, returning the largest integral value that is not greater than x. More... | |
double | ceil (double x) |
Rounds x upward, returning the smallest integral value that is not less than x. More... | |
double | pow (double base, double exponent) |
Returns base raised to the power exponent: More... | |
double | exp (double x) |
Returns the base-e exponential function of x, which is e raised to the power x: e^x. More... | |
double | fabs (double x) |
Returns the absolute value of x: |x|. More... | |
float | fabsf (float x) |
Returns the absolute value of x: |x|. More... | |
double | sqrt (double x) |
Returns the square root of x. More... | |
float | sqrtf (float x) |
Returns the square root of x. More... | |
int | isinf (double x) |
Checks if the input value is Infinite (INF). More... | |
int | isnan (double x) |
Checks if the input value is Not A Number (NAN). More... | |
double | log10 (double x) |
Logarithm function in base 10. More... | |
double | ln (double x) |
Natural logarithm function. More... | |
double | logx (double x, double y) |
Logarithm function in base x. More... | |
double | modf (double x, double *intpart) |
Breaks x into an integral and a fractional part, both parts have the same sign as x. More... | |
double ceil | ( | double | x | ) |
Rounds x upward, returning the smallest integral value that is not less than x.
x | Value to round up. |
double exp | ( | double | x | ) |
Returns the base-e exponential function of x, which is e raised to the power x: e^x.
x | Value of the exponent. |
If the magnitude of the result is too large to be represented by a value of the return type, the function returns HUGE_VAL (or HUGE_VALF or HUGE_VALL) with the proper sign, and an overflow range error occurs and the global variable errno is set to ERANGE.
double fabs | ( | double | x | ) |
Returns the absolute value of x: |x|.
x | Value whose absolute value is returned. |
float fabsf | ( | float | x | ) |
Returns the absolute value of x: |x|.
x | Value whose absolute value is returned. |
double floor | ( | double | x | ) |
Rounds x downward, returning the largest integral value that is not greater than x.
x | Value to round down. |
int isinf | ( | double | x | ) |
Checks if the input value is Infinite (INF).
x | The value to check. |
int isnan | ( | double | x | ) |
Checks if the input value is Not A Number (NAN).
x | The value to check. |
double ln | ( | double | x | ) |
Natural logarithm function.
x | Topic of the logarithm function. |
double log10 | ( | double | x | ) |
Logarithm function in base 10.
x | Topic of the logarithm function. |
double logx | ( | double | x, |
double | y | ||
) |
Logarithm function in base x.
x | Base of the logarithm. |
y | Topic of the logarithm function. |
double modf | ( | double | x, |
double * | intpart | ||
) |
Breaks x into an integral and a fractional part, both parts have the same sign as x.
x | The value we want to break. |
intpart | Where we store the integer part. |
double pow | ( | double | base, |
double | exponent | ||
) |
Returns base raised to the power exponent:
base | Base value. |
exponent | Exponent value. |
If the base is finite negative and the exponent is finite but not an integer value, it causes a domain error. If both base and exponent are zero, it may also cause a domain error on certain implementations. If base is zero and exponent is negative, it may cause a domain error or a pole error (or none, depending on the library implementation). The function may also cause a range error if the result is too great or too small to be represented by a value of the return type.
double round | ( | double | x | ) |
Returns the integral value that is nearest to x, with halfway cases rounded away from zero.
x | Value to round. |
double sqrt | ( | double | x | ) |
Returns the square root of x.
x | Value whose square root is computed. |
float sqrtf | ( | float | x | ) |
Returns the square root of x.
x | Value whose square root is computed. |