cosh

2018-11-11 15:28 更新

 原型:extern float cosh(float x);
 
 用法:#include <math.h>
 
 功能:求x的雙曲余弦值
 
 說明:cosh(x)=(e^x+e^(-x))/2
 
 舉例:

     // cosh.c
     
     #include <syslib.h>
     #include <math.h>

     main()
     {
       float x;
       
       clrscr();        // clear screen
       textmode(0x00);  // 6 lines per LCD screen
       
       x=PI/4.;
       printf("cosh(%.4f)=%.4f\n",x,cosh(x));
       
       getchar();
       return 0;
     }

以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號