Hyperbolic tangent: how to use tanh

#include <math.h>
#include <stdio.h>
int main(void)
{
double val = -1.0;
do {
printf("Hyperbolic tangent of %f is %f.\n", val, tanh(val));
val += 0.1;
} while(val<=1.0);
return 0;
}
Related examples in the same category