Turning Technologies ExamView User Manual
Page 124
ExamView Test Generator
124
Syntax
Description
string sigfig(double x,
int numSigFigs, Boolean
forceNumSigFigs)
Creates a string version of the argument, x, that has numSigFigs significant digits. If forceNumSigFigs is TRUE, then the string
returned will have exactly numSigFigs significant digits (even if the function has to randomly create some digits). If
forceNumSigFigs is FALSE, then the function will return a string that has numSigFigs significant digits or less.
EXAMPLE
sigfig(12362, 3, FALSE)
will return 12400
sigfig(2.14, 5, TRUE)
will return 2.1400
sigfig(1400, 4, TRUE)
might return 1427
double sin(double x)
Computes the sine of the argument, x. The angle is specified in radians. Values are returned in the range -1 to 1 inclusive.
double sinh(double x)
Computes the hyperbolic sine of the argument, x.
string smixfracs(double
numer, double denom)
After reducing the fraction numer / denom, this function will return a string as either a whole number, or a fraction in the form
"whole/numer/denom". When displayed, this function will draw a small stacked fraction if necessary. If denom is 0, the function
will return "0".
EXAMPLE
smixfracs(22, 6)
will return
smixfracs(2, 6)
will return
list sort(Boolean
sortAscending, double
arg1, double arg2, ...)
- or -
list sort(Boolean
sortAscending, list
dataList)
This function will sort the list of arguments. All of the arguments must be numeric (or the list must have been composed of only
numeric data). Function will return a list that can be used as an argument for choose( ).
sort(TRUE, 1, 14, 3.2, 6, 9) will return 1, 3.2, 6, 9, 14
- or -
listOfData = list(12, -3, 5)
sort(FALSE, listOfData)
will return "12, 5, -3"
double sqr(double x)
Computes the positive square root of the argument, x. The argument must be greater than or equal to zero.
turningtechnologies.com/user-guides