Turning Technologies ExamView User Manual

Page 115

Advertising
background image

ExamView Test Generator

115

Syntax

Description

double coth(double x)

Computes the hyperbolic cotangent of the argument, x. This evaluates to cosh(x) / sinh(x). Arguments to the function must not be
equal to zero.

double csc(double x)

Computes the cosecant of the argument, x. The angle is specified in radians.Arguments to the function must not be equal to zero.

double csch(double x)

Computes the hyperbolic cosecant of the argument, x. This evaluates to 1 / sinh(x). Arguments to the function must not be equal to
zero.

string decs(double x)

This function returns a string representation of the decimal number. If the function determines that the number, x, has an infinitely
repeating decimal part, the repeating part will be displayed with an overbar.

EXAMPLE

decs(18.333333333333)

will return

decs(0.0142857142857)

will return

decs(4.25)

will return

double deg(double x)

Converts an argument, x, in radians to degrees.

e

[Constant] 2.71828..., used in problems involving growth or decay (or compound interest). Usually defined by the following
equation:

expression EQV

expression

Returns TRUE (1) if both expressions evaluate to non-zero or if both expressions evaluate to zero, otherwise returns FALSE (0).

double exp(double x)

Calculates the exponential e to the x.

FALSE

[Constant] 0.

double floor(double x)

Rounds down. The function finds the largest integer not greater than the argument, x.

string format(string

format, double x)

Writes formatted output to a string. For a complete description of formatting specifiers, look in any C programming manual.

EXAMPLE

format("$%1.2f", 13.4)

will return "$13.40"

format("%d feet", 17)

will return "17 feet"

double frac(double x)

Returns the fractional part of the argument, x. The return value will always be greater than or equal to 0 and less than 1.

turningtechnologies.com/user-guides

Advertising