Datasheet
modf
pow
sin
sinh
sqrt
tan
tanh
488
MIKROELEKTRONIKA - SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Libraries
mikroBasic PRO for AVR
CHAPTER 6
Prototype
sub function modf(dim val as real, dim byref iptr as real) as real
Description
The function returns the signed fractional component of val, placing its whole
number component into the variable pointed to by iptr.
Prototype
sub function pow(dim x as real, dim y as real) as real
Description
The function returns the value of x raised to the power y (i.e. x
y
). If x is nega-
tive, the function will automatically cast
y into longint.
Prototype
sub function sin(dim arg as real) as real
Description The function returns the sine of arg in radians. The return value is from -1 to 1.
Prototype
sub function sinh(dim x as real) as real
Description
The function returns the hyperbolic sine of x, defined mathematically as (e
x
-e
-x
)/2.
If the value of
x is too large (if overflow occurs), the function fails.
Prototype
sub function sqrt(dim x as real) as real
Description The function returns the non negative square root of x.
Prototype
sub function tan(dim x as real) as real
Description
The function returns the tangent of x in radians. The return value spans the
allowed range of floating point in mikroBasic PRO for AVR.
Prototype
sub function tanh(dim x as real) as real)
Description
The function returns the hyperbolic tangent of x, defined mathematically as
sinh(x)/cosh(x).