acos - C complex.h

C examples for complex.h:acos

Type

function template

From


<complex>
<complex.h>

Description

Arc cosine of complex

Prototype

template<class T> 
complex<T> acos (const complex<T>& x);

Parameters

Parameter Description
x Complex value.

Return value

Arc cosine of x.

Demo Code


#include <iostream>
#include <complex>

int main ()//from w w w. j a  va  2  s. c o  m
{
  std::complex<double> mycomplex (3.0,4.0);

  std::cout << "The Arc cosine value of " << mycomplex << " is " << std::acos(mycomplex) << '\n';

  return 0;
}

Related Tutorials