cosh

Summary

Get the hyperbolic cosine of a number.

Usage

public static double cosh(double x)

Returns

The hyperbolic cosine of the number.

Parameters

x

The number to get the hyperbolic cosine of.

Description

Returns the hyperbolic cosine for a number.

The hyperbolic cosine for a number can be expressed with Euler's number such that:

Math.cosh(x) == (Math.exp(x) + Math.exp(-x)) / 2;

Examples

Basic Usage
1
2
3
4
import System;
 
Console.log(Math.cosh(0)); // 1
Console.log(Math.cosh(1)); // 1.5430806348152437

Share

HTML | BBCode | Direct Link