English
Language : 

CC78K4 Datasheet, PDF (242/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 10 LIBRARY FUNCTIONS
7-10 tanh
Mathematical Functions
FUNCTION
tanh finds tanh.
HEADER
math.h
FUNCTION PROTOTYPE
double tanh (double x);
Function
tanh
Arguments
x ... Numeric value to perform
operation
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.
242
User’s Manual U15556EJ1V0UM