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
PHP Star Triangle pattern program In this tutorial, we will discuss about PHP Star Triangle…
PHP Full Pyramid pattern program In this tutorial, we will discuss about PHP Full Pyramid…
5 methods to add two numbers in Java In this tutorial, we will discuss the…
Python full Pyramid star pattern program In this tutorial, we will discuss the concept of…
Write a function or method to convert C into F -Entered by the user In…
How to write a function or method to convert Celsius into Fahrenheit In this tutorial,…