Calculate hyperbolic tangent: how to use tanh
#include <stdio.h>
#include <math.h>
#define PI 3.14159265
int main ()
{
double param, result;
param = 60;
result = tanh (param*PI/180);
printf ("Hyperbolic tangent of %lf degrees is %lf\n", param, result );
return 0;
}
Related examples in the same category