Note 1:abs(), max(), andmin()are defined also forint, long, andfloat.

double

sin(double theta)

sine oftheta

double

cos(double theta)

cosine oftheta

double

tan(double theta)

tangent oftheta

Note 2: Angles are expressed in radians. UsetoDegrees()andtoRadians()to convert. Note 3: Useasin(), acos(), andatan()for inverse functions.

double

exp(double a)

exponential (e^{a})

double

log(double a)

natural log (log_{e}a, or lna)

double

pow(double a, double b)

raiseato thebth power (a^{b})

long

round(double a)

roundato the nearest integer

double

random() ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, interactive tutorials, and more.