tanh

Overview :

The "tanh" function is used for calcution of the hyperbolic tangent value of a given input.

Syntax :
double tanh(double x);
Description :

The "tanh" function accepts 1 parameters

  • x -> The x is the number whose hyperbolic tangent value is to be found

"tanh" function return the hyperbolic tangent value of a number.

Example :
#include <stdio.h>
 #include <math.h>
 #include<conio.h>

 int main()
 {
    double x,tanh_value;
	clrscr();
	printf("\nEnter the number : ");
	scanf("%lf",&x);

    tanh_value = tanh(x);
    printf("The hperbolic tangent value is %lf\n", tanh_value);
    getch();
    return 0;
}

Comments

comments powered by Disqus