English
Language : 

CC78K4 Datasheet, PDF (265/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 10 LIBRARY FUNCTIONS
7-33 tanhf
Mathematical Functions
FUNCTION
tanhf finds tanh.
HEADER
math.h
FUNCTION PROTOTYPE
float tanhf (float x);
Function
tanhf
Arguments
x ... Numeric value to perform
operation
Return Value
Normal ... tanh of x
x = NaN ... NaN
When x = ±∞ ... ±1
When underflow occurs ... ±0
EXPLANATION
• Calculates tanh of x.
• If x is non-numeric, NaN is returned.
• If x is ±∞, ±1 is returned.
• If an underflow occurs as a result of the operation, ±0 is returned.
User’s Manual U15556EJ1V0UM
265