creal
Section: C Library Functions (3)
Updated: 2026-02-08
Index
JM Home Page
roff page
名前
creal, crealf, creall - 複素数の実部を取得する
ライブラリ
数学ライブラリ (libm,~-lm)
書式
#include <complex.h>
double creal(double complex z);
float crealf(float complex z);
long double creall(long double complex z);
説明
これらの関数は複素数 z の実部を返す。
次の関係が成立する:
z = creal(z) + I * cimag(z)
属性
この節で使用されている用語の説明については、 attributes(7) を参照。
| インターフェース | 属性 | 値
|
|
creal(),
crealf(),
creall()
| Thread safety | MT-Safe
|
バージョン
GCC supports also __real__. That is a GNU extension.
標準規格
C11, POSIX.1-2008.
歴史
glibc 2.1. C99, POSIX.1-2001.
関連項目
cabs(3), cimag(3), complex(7)
Index
- 名前
-
- ライブラリ
-
- 書式
-
- 説明
-
- 属性
-
- バージョン
-
- 標準規格
-
- 歴史
-
- 関連項目
-
This document was created by
man2html,
using the manual pages.