Namespaces
Variants
Views
Actions

CMPLXF, CMPLX, CMPLXL

From cppreference.com
< c‎ | numeric‎ | complex
Revision as of 18:35, 31 May 2013 by P12bot (Talk | contribs)

Defined in header <complex.h>
float complex       cpowf( float real, float imag );
(since C11)
double complex      cpow( double real, double imag );
(since C11)
long double complex cpowl( long double real, long double imag );
(since C11)

Returns a complex number composed of real as the real part and imag as the imaginary part. The functions are implemented as macros.

The returned value in suitable for use as initializer for variables with static or thread storage duration, but only if real and imag are also suitable.

Parameters

real - the real part of the complex number to return
imag - the imaginary part of the complex number to return

Return value

A complex number composed of real and imag as the real and imaginary parts.

Example