Functions
Tanhsp

Functions

float tanhsp_c (float a)
 

Detailed Description

Function Documentation

◆ tanhsp_c()

float tanhsp_c ( float  a)
Description:
The tanhsp function returns the hyperbolic tangent function of a real floating-point argument a. If |a| is larger than 9 the hyperbolic tangent function reaches a maximum of |1.0| for single-precision.
Parameters
[in]a= Input float
Returns
Resultant float
Special Cases:
  • If a > 9.0, then the return value is 1.0 (maximum output for the hyperbolic tangent).
  • If a < -9.0, then the return value is 1.0.
  • If a is NaN, the return value is NaN.
See also
Implementation Notes:
  • The code supports both big and little endian modes.

Copyright 2022, Texas Instruments Incorporated