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
Your Rating




Post your comments , suggestion , error , requirements etc here




We use cookies to improve your browsing experience. . Learn more
HTML MySQL PHP JavaScript ASP Photoshop Articles FORUM . Contact us
©2000-2019 plus2net.com All rights reserved worldwide Privacy Policy Disclaimer