C# Complex Cos

Description

Complex Cos Returns the cosine of the specified complex number.

Syntax

Complex.Cos has the following syntax.


public static Complex Cos(
  Complex value
)

Parameters

Complex.Cos has the following parameters.

  • value - A complex number.

Returns

Complex.Cos method returns The cosine of value.

Example


//from  w w w  . j a va2 s. com
using System;
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("Cos(ACos({0})) = {1}", value, 
                           Complex.Cos(Complex.Acos(value)));
   }
}

The code above generates the following result.





















Home »
  C# Tutorial »
    System.Numerics »




BigInteger
Complex