English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

C Language Basic Tutorial

C Language Flow Control

C Language Functions

C Language Arrays

C Language Pointers

C Language Strings

C Language Structure

C Language File

C Others

C Language Reference Manual

Usage and example of the C library function sinh()

C Standard Library - <math.h>

C Library Function double sinh(double x) Returns x hyperbolic sine.

Declaration

Below is the declaration of the sinh() function.

double sinh(double x)

Parameter

  • x  -- Floating-point value.

Return Value

This function returns the hyperbolic sine of x.

Online Example

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

#include <stdio.h>
#include <math.h>
#define PI 3.141592654
int main()
{
    double angle = 2.50, result;
    result = sinh(angle);
    printf("%.2Hyperbolic sine (in radians) of 'lf' = %.2lf", angle, result);
    return 0;
}

Let's compile and run the above program, which will produce the following result:

%.2Hyperbolic sine (in radians) of 'lf' = 2.50

C Standard Library - <math.h>