Math Library
The mikroBasic PRO for 8051 provides a set of library functions for floating point math handling. See also Predefined Globals and Constants for the list of predefined math constants.
Library Functions
- acos
- asin
- atan
- atan2
- ceil
- cos
- cosh
- eval_poly
- exp
- fabs
- floor
- frexp
- ldexp
- log
- log10
- modf
- pow
- sin
- sinh
- sqrt
- tan
- tanh
acos
Prototype |
sub function acos(dim x as real) as real |
---|---|
Description |
The function returns the arc cosine of parameter |
asin
Prototype |
sub function asin(dim x as real) as real |
---|---|
Description |
The function returns the arc sine of parameter |
atan
Prototype |
sub function atan(dim arg as real) as real |
---|---|
Description |
The function computes the arc tangent of parameter |
atan2
Prototype |
sub function atan2(dim y as real, dim x as real) as real |
---|---|
Description |
This is the two-argument arc tangent function. It is similar to computing the arc tangent of |
ceil
Prototype |
sub function ceil(dim x as real) as real |
---|---|
Description |
The function returns value of parameter |
cos
Prototype |
sub function cos(dim arg as real) as real |
---|---|
Description |
The function returns the cosine of |
cosh
Prototype |
sub function cosh(dim x as real) as real |
---|---|
Description |
The function returns the hyperbolic cosine of |
eval_poly
Prototype |
sub function eval_poly(dim x as real, dim byref d as array[10] of real, dim n as integer) as real |
---|---|
Description |
Function Calculates polynom for number |
exp
Prototype |
sub function exp(dim x as real) as real |
---|---|
Description |
The function returns the value of e — the base of natural logarithms — raised to the power |
fabs
Prototype |
sub function fabs(dim d as real) as real |
---|---|
Description |
The function returns the absolute (i.e. positive) value of |
floor
Prototype |
sub function floor(dim x as real) as real |
---|---|
Description |
The function returns the value of parameter |
frexp
Prototype |
sub function frexp(dim value as real, dim byref eptr as integer) as real |
---|---|
Description |
The function splits a floating-point value |
ldexp
Prototype |
sub function ldexp(dim value as real, dim newexp as integer) as real |
---|---|
Description |
The function returns the result of multiplying the floating-point number |
log
Prototype |
sub function log(dim x as real) as real |
---|---|
Description |
The function returns the natural logarithm of |
log10
Prototype |
sub function log10(dim x as real) as real |
---|---|
Description |
The function returns the base-10 logarithm of |
modf
Prototype |
sub function modf(dim val as real, dim byref iptr as real) as real |
---|---|
Description |
The function returns the signed fractional component of |
pow
Prototype |
sub function pow(dim x as real, dim y as real) as real |
---|---|
Description |
The function returns the value of |
sin
Prototype |
sub function sin(dim arg as real) as real |
---|---|
Description |
The function returns the sine of |
sinh
Prototype |
sub function sinh(dim x as real) as real |
---|---|
Description |
The function returns the hyperbolic sine of |
sqrt
Prototype |
sub function sqrt(dim x as real) as real |
---|---|
Description |
The function returns the non negative square root of |
tan
Prototype |
sub function tan(dim x as real) as real |
---|---|
Description |
The function returns the tangent of |
tanh
Prototype |
sub function tanh(dim x as real) as real) |
---|---|
Description |
The function returns the hyperbolic tangent of |
What do you think about this topic ? Send us feedback!