English
Language : 

CC78K4 Datasheet, PDF (266/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 10 LIBRARY FUNCTIONS
7-34 expf
Mathematical Functions
FUNCTION
expf finds the exponent function.
HEADER
math.h
FUNCTION PROTOTYPE
float expf (float x);
Function
expf
Arguments
x ... Numeric value to perform
operation
Return Value
Normal ... Exponent function of
x
When overflow occurs ...
HUGE_VAL (with positive sign)
x = NaN ... NaN
When x = ±∞ ... ±∞
When underflow occurs ...
Non-normalized number
When annihilation of valid
digits occurs due to underflow
... +0
EXPLANATION
• Calculates exponent function of x.
• If x is non-numeric, NaN is returned.
• If x is ±∞, ±∞ is returned.
• If an overflow occurs as a result of the operation, HUGE_VAL with a positive sign is returned and ERANGE is
set to errno.
• If an underflow occurs as a result of the operation, a non-normalized number is returned.
• If annihilation of effective digits occurs due to underflow as a result of the operation, +0 is returned.
266
User’s Manual U15556EJ1V0UM