sinh()
We will get hyperbolic sin or cos or tan ) value of any number by using sinh() , cosh() or tanh()
function.
sinh(x)
Example sinh()
#include <stdio.h>
#include <math.h>
int main(void){
float x,ret;
x=3.5;
ret=sinh(x);
printf("sinh(%.1f)=%.2f",x, ret);
return 0;
}
The above code will give this output.
sinh(3.5)=16.54
Example cosh()
#include <stdio.h>
#include <math.h>
int main(void){
float x,ret;
x=2.54;
ret=cosh(x);
printf("cosh(%.2f)=%.2f",x, ret);
return 0;
}
Output
2.54=6.38
Example tanh()
#include <stdio.h>
#include <math.h>
int main(void){
float x,ret;
x=5.34;
ret=tanh(x);
printf("tanh(%.2f)=%.2f",x, ret);
return 0;
}
Output
tan(5.34)=1.00
This article is written by plus2net.com team.
plus2net.com