Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cmath>
- #include <climits>
- #define e 2.7182818284590452353602874713527
- using namespace std;
- double Cosh(double);
- int main()
- {
- double radians;
- cin >> radians;
- cout << fixed;
- cout << Cosh(radians) << endl;
- }
- double Sinh(double number)
- {
- double cosh = 0;
- cosh = (pow(e,number)+(1/pow(e,number)))/2;
- return cosh;
- }
- /*
- ------------------------------------------------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------------------
- Calculus II Math Exercise - Hyperbolic Cosine
- ------------------------------------------------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------------------
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement