F06BLF (PDF version)
F06 Chapter Contents
F06 Chapter Introduction
NAG Library Manual
NAG Library Routine Document
F06BLF
Note:
before using this routine, please read the Users' Note for your implementation to check the interpretation of
bold italicised
terms and other implementation-dependent details.
▸
▿
Contents
1
Purpose
2
Specification
3
Description
4
References
5
Parameters
6
Error Indicators and Warnings
7
Accuracy
8
Parallelism and Performance
9
Further Comments
10
Example
1 Purpose
F06BLF computes the quotient of two real scalars.
2 Specification
FUNCTION F06BLF (
A
,
B
,
FAIL
)
REAL (KIND=nag_wp) F06BLF
REAL (KIND=nag_wp)
A, B
LOGICAL
FAIL
3 Description
F06BLF returns the value
q
via the function name, where
q
=
a
/
b
,
if
a
/
b
does not overflow,
0
,
if
a
=
0
,
flmax
×
sign
a
/
b
,
if
a
≠
0
and
a
/
b
would overflow.
Here
flmax
is the large value given by
1
/
X02AMF
, and
sign
a
/
0
is taken as
sign
a
.
4 References
None.
5 Parameters
1:
A
– REAL (KIND=nag_wp)
Input
On entry
: the value
a
.
2:
B
– REAL (KIND=nag_wp)
Input
On entry
: the value
b
.
3:
FAIL
– LOGICAL
Output
On exit
: .TRUE. if
a
/
b
would overflow (in which case
q
=
flmax
) or
a
=
b
=
0
(in which case
q
=
0
); otherwise .FALSE..
6 Error Indicators and Warnings
None.
7 Accuracy
Not applicable.
8 Parallelism and Performance
Not applicable.
9 Further Comments
None.
10 Example
None.
F06BLF (PDF version)
F06 Chapter Contents
F06 Chapter Introduction
NAG Library Manual
© The Numerical Algorithms Group Ltd, Oxford, UK. 2015