C++ Complex Library - Pow


Advertisements

Description

It is a power of complex and returns the complex power of base x raised to the y-th power using the principal branch.

Declaration

Following is the declaration for std::pow.

template<class T> complex<T> pow (const complex<T>& x, int y);
template<class T> complex<T> pow (const complex<T>& x, const complex<T>& y);
template<class T> complex<T> pow (const complex<T>& x, const T& y);
template<class T> complex<T> pow (const T& x, const complex<T>& y);

C++11

	
template<class T> complex<T> pow (const complex<T>& x, const complex<T>& y);
template<class T> complex<T> pow (const complex<T>& x, const T& y);
template<class T> complex<T> pow (const T& x, const complex<T>& y);

Parameters

  • x − It is a complex value.

  • y − It is an exponent value.

Return Value

It returns the complex power of base x raised to the y-th power using the principal branch.

Exceptions

none

complex.htm
Advertisements