F06BLF (PDF version)
F06 Chapter Contents
F06 Chapter Introduction
NAG Library Manual

# NAG Library Routine DocumentF06BLF

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.

## 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×signa/b, if ​a≠0​ and ​a/b​ would overflow.$
Here $\mathit{flmax}$ is the large value given by $1/\left({\mathbf{X02AMF}}\right)$, and $\mathrm{sign}\left(a/0\right)$ is taken as $\mathrm{sign}a$.
None.

## 5  Parameters

1:     $\mathrm{A}$ – REAL (KIND=nag_wp)Input
On entry: the value $a$.
2:     $\mathrm{B}$ – REAL (KIND=nag_wp)Input
On entry: the value $b$.
3:     $\mathrm{FAIL}$ – LOGICALOutput
On exit: .TRUE. if $a/b$ would overflow (in which case $\left|q\right|=\mathit{flmax}$) or $a=b=0$ (in which case $q=0$); otherwise .FALSE..

None.

Not applicable.

Not applicable.

None.

## 10  Example

None.

F06BLF (PDF version)
F06 Chapter Contents
F06 Chapter Introduction
NAG Library Manual