Namespaces
Variants
Views
Actions

CMPLXF, CMPLX, CMPLXL

From cppreference.com
< c‎ | numeric‎ | complex
Revision as of 04:51, 24 November 2012 by 91.121.69.135 (Talk)

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <complex.h>
</td>

<td></td> <td></td> <tr class="t-dcl ">

<td >
float complex       cpowf( float real, float imag );
</td>

<td class="t-dcl-nopad"> </td> <td > (since C11) </td> </tr> <tr class="t-dcl ">

<td >
double complex      cpow( double real, double imag );
</td>

<td class="t-dcl-nopad"> </td> <td > (since C11) </td> </tr> <tr class="t-dcl ">

<td >
long double complex cpowl( long double real, long double imag );
</td>

<td class="t-dcl-nopad"> </td> <td > (since C11) </td> </tr> Template:ddcl list end

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