In this tutorial, we will discuss sinh arithmetic function in C language with example
sinh arithmetic function in C language returns the hyperbolic sine value of the radians angle x
sinh() : In the C Programming language, the sinh() function is used to calculate hyperbolic sine value of given arguments
The declaration for the sinh function in C programming Language is
double sinh(double x);
parameter of sinh() function is
x – this is a floating point value assigned to an angle as the parameter of this function and always measured in radians.
The sinh function returns hyperbolic sine value of x, measured in radians
The required header file for the sinh function in the C language is:
#include <math.h>
Program 1
#include <stdio.h> #include <stdlib.h> int main() { double x=0.5,y=1; printf("Hyperbolic sine value of %f is:%f\n",x,sinh(x)); printf("Hyperbolic sine value of %f is:%f\n",y,sinh(y)); getch(); return 0; }
When the above program is compiled and run, it will produce the following result
hyperbolic sine value of 0.500000 is: 0.521095 hyperbolic sine value of 1.000000 is: 1.175201
Program 2
#include <stdio.h> #include <math.h> int main() { //define the variable double sinhValue; double inputValue; //get input from user printf("Please enter the value to calculate sinh value :"); scanf("%lf",&inputValue); //calculate the Hyperbolic sine value sinhValue=sinh(inputValue); //display the Hyperbolic sine value printf("\nHyperbolic sine value of %lf is %lf\n",inputValue,sinhValue); getch(); return 0; }
When the above program is compiled and run, it will produce the following result
Please enter the value to calculate sinh value :0.6 Hyperbolic sine value of 0.600000is 0.636654
Other C programming language functions that are similar to the cosine function
suggested for you
User defined function in C language
C# inverted full pyramid star pattern In this article, we will discuss the concept of…
C# Full Pyramid star pattern program In this article, we will discuss the concept of…
Program to count vowels, consonants, words, characters and space in Java In this article, we…
How to print multiplication table using Array in C++ language In this post, we will…
C Program to multiplication table using Array In this tutorial , we will discuss about…
Java program to check odd or even using recursion In this tutorial, we discuss a…