A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://cplusplus.com/sinh below:

function

<cmath> <ctgmath>

sinh
     double sinh  (double x);      float sinhf (float x);long double sinhl (long double x);
     double sinh (double x);      float sinh (float x);long double sinh (long double x);
     double sinh (double x);      float sinh (float x);long double sinh (long double x);     double sinh (T x);           // additional overloads for integral types

Compute hyperbolic sine

Returns the hyperbolic sine of x.

Header

<tgmath.h>

provides a type-generic macro version of this function.



Parameters
x
Value representing a hyperbolic angle.

Return Value Hyperbolic sine of x.
If the magnitude of the result is too large to be represented by a value of the return type, the function returns HUGE_VAL (or HUGE_VALF or HUGE_VALL) with the proper sign, and an overflow range error occurs:

If an overflow

range error

occurs, the global variable

errno

is set to

ERANGE

.



Example
1
2
3
4
5
6
7
8
9
10
11
12
/* sinh example */
#include <stdio.h>      /* printf */
#include <math.h>       /* sinh, log */

int main ()
{
  double param, result;
  param = log(2.0);
  result = sinh (param);
  printf ("The hyperbolic sine of %f is %f.\n", param, result );
  return 0;
}

Output:
The hyperbolic sine of 0.693147 is 0.750000.


See also
cosh
Compute hyperbolic cosine (function)
tanh
Compute hyperbolic tangent (function)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4