double MathSqrt(double x)
The MathSqrt function returns the square root of x. If x is negative, MathSqrt
returns an indefinite (same as a quiet NaN).
MathSqrt 関数は x の平方根を返します。x が負の場合は、MathSqrt は不確定を返します(Quiet NaN と同じ)。
Parameters:
パラメータ:
x - Positive numeric value.
正の数値。
Sample:
サンプル:
double question=45.35, answer;
answer=MathSqrt(question);
if(question<0)
Print("Error: MathSqrt returns ",answer," answer");
else
Print("The square root of ",question," is ", answer);
//Output: The square root of 45.35 is 6.73
|