HP Business BASIC/XL Reference Manual - HP 3000 MPE/iX Computer Systems - Edition 1 (32715-90001)

5- 2
ASN
The ASN function returns the principal value of the arc sine of a number.
The argument value is in the range [-1, 1]. The result can be expressed
in angular units of degrees, grads or radians.
Syntax
ASN(
n
)
Parameters
n
The number to be evaluated.
n
is a REAL number in the
range of [-1, 1].
The ASN function returns a REAL number.
Examples
10 A = ASN(0.6) !A = 36.87(Degrees)
20 B = ASN(0.6) !B = 40.97(Grads)
30 C = ASN(0.6) !C = .64(Radians)
ATN
The ATN function returns the principal value of the arc tangent of a
number. The result can be expressed in angular units of degrees, grads,
or radians.
Syntax
ATN(
n
)
Parameters
n
The number to be evaluated.
n
is a REAL number.
The ATN function returns a REAL number.
Examples
10 A = ATN(0.7) !A = 34.99 (Degrees)
20 B = ATN(0.7) !B = 38.88 (Grads)
30 C = ATN(0.7) !C = .61 (Radians)
AVG
The AVG function is a Report Writer function that returns the average
value of a Report Writer total. It returns the value of the TOTAL(Level,
Sequence)/NUMDETAIL(Level) functions. See those functions for further
detail.
Syntax
AVG(
level
,
sequence
)
Parameters
level
The summary level number. It must be in the range [0,
9].
sequence
Indicates which expression in the given TOTALS statement
should be returned. The first expression is sequence
number one. An error occurs if the sequence number is
less than one or greater than the number of expressions
in the totals statement.
Example
The following program segment calls the AVG function.
100 Level1=3
120 Sequence1=2
130 Average=AVG(Level1,Sequence1)
BINAND