Advertisement
Vickyyy01

Hyperbolic Sine Calculator

Jan 11th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.96 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 Sinh(double);
  9.  
  10. int main()
  11. {
  12.     double radians;
  13.     cin >> radians;
  14.  
  15.     cout << fixed;
  16.     cout << Sinh(radians) << endl;
  17. }
  18.  
  19. double Sinh(double number)
  20. {
  21.     double sinh = 0;
  22.     sinh = (pow(e,number)-(1/pow(e,number)))/2;
  23.  
  24.     return sinh;
  25. }
  26.  
  27. /*
  28. ------------------------------------------------------------------------------------------------------------------------------------
  29. ------------------------------------------------------------------------------------------------------------------------------------
  30. Calculus II Math Exercise - Hyperbolic Sine
  31. ------------------------------------------------------------------------------------------------------------------------------------
  32. ------------------------------------------------------------------------------------------------------------------------------------
  33. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement