background image

数学函数

Abs

Abs

Abs

Abs

函数描述:mixed abs(mixed number);
返回值:函数 abs 返回参数 number 的绝对值。

Acos

Acos

Acos

Acos

函数描述:double acos(double number);
返回值:函数 acos 返回参数 number 的反余弦值。如果参数 number 大于 1 或小于 1,则其
反余弦值无意义 。

Asin

Asin

Asin

Asin

函数描述;double asin(double number);
返回值:函数 asin 返回参数 number 的反正弦值。如果参数 number 大于 1 或小于 1,则其反
正弦值无意义 。

Atan

Atan

Atan

Atan

函数描述:double atan(double number);
函数 atan 返回参数 number 的反正切值。
Atan2

Atan2

Atan2

Atan2

函数描述:Double atan2(double x , double y);
返回值:函数 atan2 返回由直角坐标系指定的座标点在极座标系中的角度的弧度值。

BinDec

BinDec

BinDec

BinDec

函数描述:int bindec(string binary_number);
返回值:函数 bindec 返回一个用二进制数写成的字符串 binary_number 的整数值。PHP 使用

32 位带符号的整数,其二进制数的第一位是符号位。

Ceil

Ceil

Ceil

Ceil

函数描述:int ceil(double number);
返回值:函数 ceil 返回大于参数 number 的最小整数;若 number 为整数。,则返回其本身。
Cos

Cos

Cos

Cos

函数描述:double cos(double angle);
返回值:函数 cos 返回以弧度的大小为参数 angle 的角的余弦值。

DecBin

DecBin

DecBin

DecBin

与 bindec 相反,将十进制转为二进制。
DecHex

DecHex

DecHex

DecHex

<->HexDec

<->HexDec

<->HexDec

<->HexDec

返回十六进制值

DecOct

DecOct

DecOct

DecOct

<->OctDec

<->OctDec

<->OctDec

<->OctDec

返回八进制值

Deg2rad

Deg2rad

Deg2rad

Deg2rad

<->Rad2reg

<->Rad2reg

<->Rad2reg

<->Rad2reg

函数描述:double deg2red(double angle);
返回值:函数 deg2red 返回角度数 angle 相对应的弧度值。

Exp

Exp

Exp

Exp

函数描述:double exp(double power);
返回值:函数 exp 返回自然对数的 power 次幂。
Floor

Floor

Floor

Floor

函数描述:int floor(double number);
返回值:返回参数 number 的整数部分。

Getrandmax

Getrandmax

Getrandmax

Getrandmax

函数描述:int getrandmax();
返回值;返回由函数 rand 所能返回的最大值