㈠ 編程的介面有哪些
(1)C語言:
【SYNOPSIS】
#include <math.h>
double sqrt(double X);
float sqrtf(float X);
【DESCRIPTION】
DESCRIPTION
sqrt computes the positive square root of the argument. ...
【RETURNS】
On success, the square root is returned. If X is real and positive...
(2)perl語言:
$ 【perldoc】 -f sqrt
sqrt EXPR
sqrt #Return the square root of EXPR. If EXPR is omitted, returns
#square root of $_. Only works on non-negative operands, unless
#you've loaded the standard Math::Complex mole.
(3)python語言:
$ 【pydoc】 math.sqrt
Help on built-in function sqrt in math:
math.sqrt = sqrt(...)
sqrt(x)
Return the square root of x.
(4)ruby語言:
$ 【ri】 Math::sqrt
Math::sqrt
Math.sqrt(numeric) => float
Returns the non-negative square root of _numeric_.
注釋:帶有【】的代碼是這個語言的編程介面
(5)java語言:
http://download.oracle.com/javase/6/docs/api/