C# Complex Cosh

Description

Complex Cosh Returns the hyperbolic cosine of the specified complex number.

Syntax

Complex.Cosh has the following syntax.


public static Complex Cosh(
  Complex value
)

Parameters

Complex.Cosh has the following parameters.

  • value - A complex number.

Returns

Complex.Cosh method returns The hyperbolic cosine of value.

Example


using System;//  ww  w  . j  a v a  2 s.c o m
using System.Numerics;

public class Example
{
   public static void Main()
   {
      Complex[] values = { new Complex(.5, 2), 
                           new Complex(.5, -2),
                           new Complex(-.5, 2),
                           new Complex(-.3, -.8) };
      foreach (Complex value in values)
         Console.WriteLine(Complex.Cosh(Complex.Cosh(value)));
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex