sinh function(Hyperbolic Sine) in C Language – example and detail

In the C Programming Language, the sinh function returns the hyperbolic sine of x.

Syntax

The syntax for the sinh characteristic in the C Language is:

double sinh(double x);

Parameters or Arguments

x

A value expressed in radians (not degrees).

Returns

The sinh function returns the hyperbolic sine of x. If the magnitude of x is too large, the sinh characteristic will return a range error.

Required Header

In the C Language, the required header for the sinh feature is:

#include <math.h>

Applies To

In the C Language, the sinh characteristic can be used in the following versions:

ANSI/ISO 9899-1990

sinh Example

/* Example using sinh by TechOnTheNet.com */

#include <stdio.h>
#include <math.h>

int main(int argc, const char * argv[])
{
    /* Define temporary variables */
    double value;
    double result;

    /* Assign the value we will find the sinh of */
    value = 0.5;

    /* Calculate the Hyperbolic Sine of value */
    result = sinh(value);

    /* Display the result of the calculation */
    printf("The Hyperbolic Sine of %f is %f\n", value, result);

    return 0;
}

When compiled and run, this utility will output:

The Hyperbolic Sine of 0.500000 is 0.521095

Similar Functions

Other C features that are similar to the sinh function:

cosh function <math.h>

tanh function <math.h>

See Also

Other C features that are noteworthy when dealing with the sinh function:

acos function asin characteristic atan characteristic atan2 function cos function sin characteristic tan function