Advertisement
Vickyyy01

Hyperbolic Cosine Calculator

Jan 11th, 2016
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.97 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. #include <climits>
  4. #define e 2.7182818284590452353602874713527
  5.  
  6. using namespace std;
  7.  
  8. double Cosh(double);
  9.  
  10. int main()
  11. {
  12.     double radians;
  13.     cin >> radians;
  14.  
  15.     cout << fixed;
  16.     cout << Cosh(radians) << endl;
  17. }
  18.  
  19. double Sinh(double number)
  20. {
  21.     double cosh = 0;
  22.     cosh = (pow(e,number)+(1/pow(e,number)))/2;
  23.  
  24.     return cosh;
  25. }
  26.  
  27. /*
  28. ------------------------------------------------------------------------------------------------------------------------------------
  29. ------------------------------------------------------------------------------------------------------------------------------------
  30. Calculus II Math Exercise - Hyperbolic Cosine
  31. ------------------------------------------------------------------------------------------------------------------------------------
  32. ------------------------------------------------------------------------------------------------------------------------------------
  33. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement