C examples for complex.h:acos
function template
<complex> <complex.h>
Arc cosine of complex
template<class T> complex<T> acos (const complex<T>& x);
Parameter | Description |
---|---|
x | Complex value. |
Arc cosine of x.
#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; }