Rechercher une page de manuel
sqrt
Langue: ja
Version: 2002-07-27 (fedora - 25/11/07)
Section: 3 (Bibliothèques de fonctions)
名前
sqrt, sqrtf, sqrtl - 平方根関数書式
#include <math.h> double sqrt(double x);
float sqrtf(float x);
long double sqrtl(long double x);
-lm でリンクする。
説明
sqrt() 関数は x の平方根のうち負でない方の値を返す。 もし x が負ならば、計算は失敗し、errno は EDOM に設定される。エラー
- EDOM
- x が負である。
準拠
SVr4, 4.3BSD, C89. float 版と long double 版は C99 の要求仕様である。関連項目
cbrt(3), csqrt(3), hypot(3)Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre