crealf函数
概要:
#include <complex.h> float crealf(float complex z);
描述:
该函数计算参数z的实部值。
参数:
float complex z
参数为一个float complex类型的复数。
返回值:
函数返回参数z的实部值。
范例:
|
|
输出:
crealf(1.0f + 2.0fi) = 1.00
相关内容:
creal | 计算double complex类型复数实部值的函数。 |
creall | 计算long double complex类型复数实部值的函数。 |