PHP sinh() Function

Definition

The sinh() function returns the hyperbolic sine of a number, which is equal to (exp(number) - exp(-number))/2).

Syntax

PHP sinh() Function has the following syntax.

sinh(number);

Parameter

ParameterDescription
numberRequired. Specifies a number

Return

Item Value
Return ValueThe hyperbolic sine of number
Return TypeFloat

Example

Return the hyperbolic sine of different numbers:


<?php/*  w  w  w  .  j  a  v a  2s . c  om*/
echo(sinh(3) . "\n");
echo(sinh(-3) . "\n");
echo(sinh(0) . "\n");
echo(sinh(M_PI) . "\n");
echo(sinh(M_PI_2));
?>

The code above generates the following result.





















Home »
  PHP Tutorial »
    Function reference »




PHP Array Functions
PHP Calendar Functions
PHP Class Functions
PHP Data Type Functions
PHP Date Functions
PHP File Functions
PHP Image Functions
PHP Math Functions
PHP MySQLi Functions
PHP SimpleXML Functions
PHP String Functions
PHP XML Functions
PHP Zip Functions