w3resource

C sinh() function

C sinh() function - Hyperbolic sine functions

Syntax:

double sinh(double x)

The sinh() function is used to calculate the hyperbolic sine of x.

Parameters:

Name Description Required /Optional
x Angle in radians. Required

Return value from sinh()

  • Returns the value of the hyperbolic sine of x.

Example: sinh() function

The following example shows the usage of sinh() function.

#include <math.h>
#include <stdio.h>
 
int main(void)
{
   double pi, x, y; 
   pi = 3.1415926535;
   x = pi/2;
   y = sinh(x); 
   printf("sinh( %lf ) = %lf\n", x, y);
} 

Output:

sinh( 1.570796 ) = 2.301299

C Programming Code Editor:

Previous C Programming: C sin()
Next C Programming: C tanh()



Follow us on Facebook and Twitter for latest update.