分享方式:


_Cbuild、 、 _FCbuild_LCbuild

從實數和虛數部分建構複數。

語法

_Dcomplex _Cbuild( double real, double imaginary );
_Fcomplex _FCbuild( float real, float imaginary );
_Lcomplex _LCbuild( long double real, long double imaginary );

參數

real
要建構之複數的實際部分。

imaginary
要建構之複數的虛數部分。

傳回值

_Fcomplex_Dcomplex、 或 _Lcomplex 結構,表示指定浮點型別值的複數 (realimaginary * i) 。

備註

_FCbuild_LCbuild_Cbuild式可簡化複雜類型的建立。 creal使用、 crealf creall和 、 cimagfcimaglcimag式來擷取所表示複數的實數和虛數部分。

需求

常式 C 標頭 C++ 標頭
_Cbuild、 、 _FCbuild_LCbuild <complex.h> <ccomplex>

這些函式Microsoft特定。 、 和類型分別與未實作的 C99 原生類型_Dcomplex_Fcomplexdouble _Complexfloat _Complex_Lcomplex long double _Complex相等Microsoft特定。 如需相容性詳細資訊,請參閱相容性

另請參閱

依字母順序排列的函式參考
_Cmulcc、 、 _FCmulcc_LCmulcc
_Cmulcr、 、 _FCmulcr_LCmulcr
norm、 、 normfnorml
cproj、 、 cprojfcprojl
conj、 、 conjfconjl
creal、 、 crealfcreall
cimag、 、 cimagfcimagl
carg、 、 cargfcargl
cabs、 、 cabsfcabsl