English
Language : 

CC78K0S Datasheet, PDF (259/520 Pages) NEC – C Compiler Ver.1.30 or Later Language
CHAPTER 10 LIBRARY FUNCTIONS
7-10 tanh (normal model only)
Mathematical Functions
FUNCTION
tanh finds tanh.
HEADER
math.h
FUNCTION PROTOTYPE
double tanh (double x) ;
Function
tanh
Arguments
x ... Numeric value on which
operation is performed
Return Value
Normal ... tanh of x
When 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 U14872EJ1V0UM
259