cbrt

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

名前

cbrt, cbrtf, cbrtl - 立方根を計算する関数  

ライブラリ

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

書式

#include <math.h>

double cbrt(double x);
float cbrtf(float x);
long double cbrtl(long double x);

glibc 向けの機能検査マクロの要件 (feature_test_macros(7) 参照):

cbrt():


    _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
        || _XOPEN_SOURCE >= 500
        || /* Since glibc 2.19: */ _DEFAULT_SOURCE
        || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE

cbrtf(), cbrtl():

    _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
        || /* Since glibc 2.19: */ _DEFAULT_SOURCE
        || /* glibc <= 2.19: */ _BSD_SOURCE || _SVID_SOURCE
 

説明

These functions return the (real) cube root of x. This function cannot fail; every representable real value has a real cube root, and rounding it to a representable value never causes overflow nor underflow.  

返り値

これらの関数は x の立方根を返す。

x が +0、-0、正の無限大、負の無限大、NaN のいずれかの場合、 x が返される。  

エラー

エラーは発生しない。  

属性

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

標準規格

C11, POSIX.1-2008.  

歴史

GNU, C99, POSIX.1-2001.  

関連項目

pow(3), sqrt(3)


 

Index

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

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