Turning Technologies ExamView User Manual

Page 125

Advertising
background image

ExamView Test Generator

125

Syntax

Description

string sqrs(double x)

After reducing the argument, x, to a multiple of a whole number and a radical, it returns a string representation in the form whole
(square root) radical. When displayed, this function will draw a radical if necessary.

EXAMPLE

sqrs(18)

will return

sqrs(16)

will return 4

sqrs(-8)

will return

sqrs(3.14159)

will return

double sqrt(double x)

Computes the positive square root of the argument, x. The argument must be greater than or equal to zero.

string srfracs(double

numer, double denom)

Reduces the fraction numer / denom. When displayed, this function will always draw a small ratio in stacked fraction form. If
denom is 0, the function will return "0".

EXAMPLE

srfracs(22, 6)

will return

srfracs(22, 11)

will return

string str(double x)

Returns a string representation of the argument, x.

EXAMPLE

str(18)

will return "18"

string strdup(string x,

int numTimes)

Returns a string by combining the string argument, x, a variable number of times.

EXAMPLE

strdup("(2)", 5)

will return "(2)(2)(2)(2)(2)"

double sum(list data)

Returns the sum of the data values in the list.

turningtechnologies.com/user-guides

Advertising