csqrt

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

名前

csqrt, csqrtf, csqrtl - 複素数の平方根  

ライブラリ

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

書式

#include <complex.h>

double complex csqrt(double complex z);
float complex csqrtf(float complex z);
long double complex csqrtl(long double complex z);
 

説明

これらの関数は、複素数 z の平方根を計算する。実軸の負の部分に沿って分枝切断 (branch cut) がある。 (つまり、 eps を小さな正の実数とした場合、 csqrt(-1+eps*I) が I に近付いていき、 一方 csqrt(-1-eps*I) は -I に近付いていく、 ということである。)  

属性

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

標準規格

C11, POSIX.1-2008.  

歴史

glibc 2.1. C99, POSIX.1-2001.  

関連項目

cabs(3), cexp(3), complex(7)


 

Index

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

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