How to use asinh() function to get the arc hyperbolic sine value of N in C++

1 Answer

0 votes
#include <iostream>
#include <cmath>
#include <cfloat>      

using namespace std;

int main()
{
	cout << "asinh(1) = " << asinh(1) << endl;
	cout << "asinh(0) = " << asinh(0) << endl;
	cout << "asinh(10) = " << asinh(10) << endl;
	cout << "asinh(0.5) = " << asinh(0.5) << endl;;
	cout << "asinh(DBL_MAX) = " << asinh(DBL_MAX) << endl;
	cout << "asinh(INFINITY) = " << asinh(INFINITY) << endl;

	return 0;
}


/*
run:

asinh(1) = 0.881374
asinh(0) = 0
asinh(10) = 2.99822
asinh(0.5) = 0.481212
asinh(DBL_MAX) = 710.476
asinh(INFINITY) = inf

*/

 



answered Mar 12, 2016 by avibootz

Related questions

...