beautypg.com

Integer math functions 26, Floating point math functions 26 – Apple Newton Programmer’s Newton 2.0 (for Newton 2.0) User Manual

Page 900

background image

C H A P T E R 2 6

Utility Functions

26-10

Summary of Functions and Methods

BMerge(

array1

,

array2

,

test

,

key

,

uniqueOnly

)

BSearchLeft(

array

,

item

,

test

,

key

)

BSearchRight(

array

,

item

,

test

,

key

)

Integer Math Functions

26

Abs(

x

)

Ceiling(

x

)

Floor(

x

)

GetRandomState()

Max(

a

,

b

)

Min(

a

,

b

)

Real(

x

)

Random (

low

,

high

)

SetRandomSeed (

seedNumber

)

SetRandomState(

randomState

)

Floating Point Math Functions

26

Acos(

x

)

Acosh(

x

)

Asin(

x

)

Asinh(

x

)

Atan(

x

)

Atan2(

x

,

y

)

Atanh(

x

)

CopySign(

x

,

y

)

Cos(

x

)

Cosh(

x

)

Erf(

x

)

Erfc(

x

)

Exp(

x

)

Expm1(

x

)

Fabs(

x

)

FDim(

x

,

y

)

FMax(

x

,

y

)

FMin(

x

,

y

)

Fmod(

x

,

y

)

Gamma(

x

)

Hypot(

x

,

y

)