Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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 cexp, cexpf, cexpl.
Compute the base-e exponential of a complex number.
Syntax
_Dcomplex cexp(
_Dcomplex z
);
_Fcomplex cexp(
_Fcomplex z
); // C++ only
_Lcomplex cexp(
_Lcomplex z
); // C++ only
_Fcomplex cexpf(
_Fcomplex z
);
_Lcomplex cexpl(
_Lcomplex z
);
Parameters
z
A complex number that represents the exponent.
Return Value
The value of e raised to the power of z.
Remarks
Because C++ allows overloading, you can call overloads of cexp that take and return _Fcomplex and _Lcomplex values. In a C program, cexp always takes and returns a _Dcomplex value.
Requirements
| Routine | C header | C++ header |
|---|---|---|
cexp, cexpf, cexpl |
<complex.h> | <complex.h> |
For compatibility information, see Compatibility.
See Also
Alphabetical Function Reference
cpow, cpowf, cpowl
clog10, clog10f, clog10l
clog, clogf, clogl