Partager via


cpow, cpowf, cpowl

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at cpow, cpowf, cpowl.

Retrieves the value of a number raised to the specified power, where the base and exponent are complex numbers. This function has a branch cut for the exponent along the negative real axis.

Syntax

_Dcomplex cpow(   
   _Dcomplex x, _Dcomplex y   
);  
_Fcomplex cpow(   
   _Fcomplex x, _Fcomplex y   
);  // C++ only  
_Lcomplex cpow(   
   _Lcomplex x, _Lcomplex y   
);  // C++ only  
_Fcomplex cpowf(   
   _Fcomplex x, _Fcomplex y   
);  
_Lcomplex cpowl(   
   _Lcomplex x, _Lcomplex y   
);  

Parameters

x
The base.

y
The exponent.

Return Value

The value of x raised to the power of y with a branch cut for x along the negative real axis.

Remarks

Because C++ allows overloading, you can call overloads of cpow that take and return _Fcomplex and _Lcomplex values. In a C program, cpow always takes and returns a _Dcomplex value.

Requirements

Routine C header C++ header
cpow, cpowf, cpowl <complex.h> <ccomplex>

For more compatibility information, see Compatibility in the Introduction.

See Also

Alphabetical Function Reference
cexp, cexpf, cexpl
clog10, clog10f, clog10l
clog, clogf, clogl