Download TR0109 TSK3000 Embedded Tools Reference

Transcript
TSK3000 Embedded Tools Reference
Exponential and logarithmic functions
All of these functions are new in C99, except for exp, log and log10.
Math.h
Tgmath.h
Description
exp
expf
expl
exp
Returns the result of the exponential function ex.
exp2
exp2f
exp2l
exp2
Returns the result of the exponential function 2x.
(Not implemented)
expm1
expm1f expm1l
expm1
Returns the result of the exponential function ex-1
(Not implemented)
log
logf
log
Returns the natural logarithm ln(x), x>0.
log10
log10f log10l
log10
Returns the base-10 logarithm of x, x>0.
log1p
log1pf log1pl
log1p
Returns the base-e logarithm of (1+x). x <> -1.
(Not implemented)
log2
log2f
log2l
log2
Returns the base-2 logarithm of x. x>0.
(Not implemented)
ilogb ilogbf
ilogbl
ilogb
Returns the signed exponent of x as an integer. x>0.
(Not implemented)
logb
logbl
logb
Returns the exponent of x as a signed integer in value in
floating-point notation. x > 0.
(Not implemented)
2-8
logbf
logl