TheDeveloperBlog.com

Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

C++ Math sinh() Function

C++ Math sinh() Function with tutorial for beginners and professionals with examples on isgreaterequal(), less(), islessequal(), islessgreater(), isunordered(), exp(), frexp(), ldexp(), log(), log10(), modf(), exp2(), expm1(), log1p(), log2(), logb(), scalbn(), scalbln() etc.

<< Back to CPP

C++ Math sinh()

The function computes the hyperbolic sine of an angle given in radian.

Mathematically,

sinhx = (ex-e-x/2

Syntax

Suppose the hyperbolic angle is x:

float sinh(float x);
double sinh(double x);
long double sinh(long double x);
double sinh(integral x);

Parameter

x: The value representing the hyperbolic anle.

Return value

It returns the hyperbolic sine of an angle.

Example 1

Let's see a simple example.

#include 
#include
using namespace std;
int main()
{
   int x=90;
   float radian=x*3.14/180;
   std::cout << "Value of degree is: " << x<

Output:

Value of degree is: 90
sinh(radian): 2.2993   

In this example, sinh() function computes the hyperbolic sine of an angle 90 and returns the value 2.2993

Example 2

Let's see another simple example.

#include 
#include
using namespace std;
int main()
{
   float x=56.4;
   float radian=x*3.14/180;
   std::cout << "Value of degree is :" << x<

Output:

Value of degree is :56.4
sinh(radian): 1.15046   

In this example, sinh() function computes the hyperbolic sine of angle 56.4 and returns the value 1.15.


Next TopicC++ Math Functions




Related Links:


Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf