Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Turbo C - <b>tanh() calculate hyperbolic tangent</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
tanh()                   Calculate Hyperbolic Tangent

 #include   <math.h>

 double     tanh(x);
 double     x;                           Radians

    tanh() returns the hyperbolic tangent of 'x'.

    Returns:    The hyperbolic tangent of 'x'.  There is no error return.

  -------------------------------- Example ---------------------------------

    The following statements print the hyperbolic tangent of -3.1416.

         #include <math.h>
         #include <stdio.h>       /* for printf() */

         main()
         {
             double htangent;

             htangent = tanh(-3.1416);  /* htangent = -0.9962721 */
             printf("hyperbolic tangent of -3.1416 radians = %e\n",
                     htangent);
         }

See Also: tan() atan() sin() sinh()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson