Mikroelektronika MIKROE-350 Fiche De Données

Page de 526
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 realdim byref iptr as realas 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 as realdim as realas real
Description
The function returns the value of 
x
raised to the power y (i.e. 
xy
). If 
x
is nega-
tive, the function will automatically cast 
y
into 
longint
.
Prototype
sub function sin(dim arg as realas real
Description The function returns the sine of arg in radians. The return value is from -1 to 1.
Prototype
sub function sinh(dim as realas real
Description
The function returns the hyperbolic sine of 
x
, defined mathematically as 
(ex-e-x)/2
.
If the value of 
x
is too large (if overflow occurs), the function fails.
Prototype
sub function sqrt(dim as realas real
Description The function returns the non negative square root of 
x
.
Prototype
sub function tan(dim as realas 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 as realas real)
Description
The function returns the hyperbolic tangent of 
x,
defined mathematically as
sinh(x)/cosh(x).