English
Language : 

CC78K0S Datasheet, PDF (282/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 10 LIBRARY FUNCTIONS
7-33 tanhf (normal model only)
Mathematical Functions
FUNCTION
tanhf finds tanh.
HEADER
math.h
FUNCTION PROTOTYPE
float tanhf (float x) ;
Function
tanhf
Arguments
x ... Numeric value on which
operation is performed
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.
282
User’s Manual U14872EJ1V0UM