cimag

Section: C Library Functions (3)
Updated: 2026-02-08
Index JM Home Page roff page
 

名前

cimag, cimagf, cimagl - 複素数の虚部を取得する  

ライブラリ

数学ライブラリ (libm,~-lm)  

書式

#include <complex.h>

double cimag(double complex z);
float cimagf(float complex z);
long double cimagl(long double complex z);
 

説明

これらの関数は複素数 z の虚部を返す。

次の関係が成立する:

z = creal(z) + I * cimag(z)
 

属性

この節で使用されている用語の説明については、 attributes(7) を参照。
インターフェース属性値
cimag(), cimagf(), cimagl() Thread safetyMT-Safe
 

バージョン

GCC also supports __imag__. That is a GNU extension.  

標準規格

C11, POSIX.1-2008.  

歴史

glibc 2.1. C99, POSIX.1-2001.  

関連項目

cabs(3), creal(3), complex(7)


 

Index

名前
ライブラリ
書式
説明
属性
バージョン
標準規格
歴史
関連項目

This document was created by man2html, using the manual pages.