Turnstone Operating System
|
Math library for 64-bit floating point numbers. More...
#include <math.h>
Macros | |
#define | MATH_TRESHOLD 0.00000000000001L |
Functions | |
MODULE ("turnstone.lib") | |
float64_t | math_sin_approx (float64_t number) |
calculates approx for sin of number More... | |
int64_t | math_ceil (float64_t num) |
ceil of given float number More... | |
int64_t | math_floor (float64_t num) |
floor of given float number More... | |
float64_t | math_power (float64_t base, float64_t p) |
power base with p More... | |
float64_t | math_exp (float64_t number) |
calculates exp^number More... | |
float64_t | math_log (float64_t number) |
calculates log given number at base exp More... | |
float64_t | math_root (float64_t number, float64_t root) |
calculates root of given number at root More... | |
float64_t | math_antilog (float64_t power, float64_t base) |
calculates antilog value More... | |
float64_t | math_sin (float64_t number) |
calculates sin of x More... | |
boolean_t | math_isnan (float64_t number) |
checks if given number is nan More... | |
boolean_t | math_isinf (float64_t number) |
checks if given number is infinite More... | |
Math library for 64-bit floating point numbers.
This work is licensed under TURNSTONE OS Public License. Please read and understand latest version of Licence.
calculates antilog value
[in] | power | given number |
[in] | base | log base |
ceil of given float number
[in] | num | given float number |
calculates exp^number
[in] | number | number to calculate |
floor of given float number
[in] | num | given float number |
boolean_t math_isinf | ( | float64_t | number | ) |
checks if given number is infinite
[in] | number | number for calculation |
boolean_t math_isnan | ( | float64_t | number | ) |
checks if given number is nan
[in] | number | number for calculation |
calculates log given number at base exp
[in] | number | number to calculate |
power base with p
[in] | base | the base |
[in] | p | the power |
calculates root of given number at root
[in] | number | given number |
[in] | root | root to calculate |
calculates sin of x
[in] | number | number for calculation |