HP Fortran Programmer's Reference (September 2007)

Intrinsic procedures
Intrinsic procedure speciļ¬cations
Chapter 11524
Class
Transformational function.
Arguments
MASK must be of type logical. It must not be scalar.
DIM (optional) must be scalar and of type integer with a value in the range 1 <= DIM <=
n
,
where
n
is the rank of MASK. The corresponding actual argument must not be
an optional dummy argument.
Result type,
type parameters,
and shape
The result is of type logical with the same kind type parameter as MASK. It is scalar if DIM is
absent or MASK has rank one; otherwise, the result is an array of rank
n
-1 and of shape (
d
1
,
d
2
,
...,
d
DIM-1
,
d
DIM+1
, ...,
d
n
) where (
d
1
,
d
2
, ...,
d
n
) is the shape of MASK.
Result value
Case 1 The result of ANY(MASK) has the value .TRUE. if any element of MASK is
.TRUE. and has the value .FALSE. if no elements are .TRUE. or if MASK has
size zero.
Case 2 If MASK has rank one, ANY(MASK,DIM) has a value equal to that of
ANY(MASK). Otherwise, the value of element (
s
1
,
s
2
, ...,
s
DIM-1
,
s
DIM+1
, ...,
s
n
) of ANY(MASK, DIM) is equal to ANY(MASK(
s
1
,
s
2
, ...,
s
DIM-1
, :,
s
DIM+1
, ...,
s
n
)).
ASIN(X)
Description
Arcsine (inverse sine) function in radians.
Class
Elemental function.
Argument
X must be of type real. Its value must satisfy the inequality |X| >= 1.