# NAG FL Interfacef06clf (zdiv)

## ▸▿ Contents

Settings help

FL Name Style:

FL Specification Language:

## 1Purpose

f06clf computes the quotient of two complex scalars.

## 2Specification

Fortran Interface
 Function f06clf ( a, b, fail)
 Complex (Kind=nag_wp) :: f06clf Complex (Kind=nag_wp), Intent (In) :: a, b Logical, Intent (Out) :: fail
#include <nag.h>
 Complex f06clf_ (const Complex *a, const Complex *b, logical *fail)
The routine may be called by the names f06clf or nagf_blas_zdiv.

## 3Description

f06clf returns the value $q$ via the function name, where
 $q= { a/b, if ​a/b​ does not overflow, 0, if ​a=0, cflmax, if ​a≠0​ and ​a/b​ would overflow.$
Here $\mathit{cflmax}$ is a large complex value, given by
 $cflmax=(flmax×sign(Re(a)/b),flmax×sign(Im(a)/b));$
$\mathit{flmax}$ is the real value given by $1/\left({\mathbf{x02amf}}\right)$, and for real $x$, $\mathrm{sign}\left(x/0\right)$ is taken as $\mathrm{sign}x$.

None.

## 5Arguments

1: $\mathbf{a}$Complex (Kind=nag_wp) Input
On entry: the value $a$.
2: $\mathbf{b}$Complex (Kind=nag_wp) Input
On entry: the value $b$.
3: $\mathbf{fail}$Logical Output
On exit: .TRUE. if $a/b$ would overflow (in which case $|\mathrm{Re}\left(q\right)|=|\mathrm{Im}\left(q\right)|=\mathit{flmax}$) or $a=b=0$ (in which case $q=0$); otherwise .FALSE..

None.

Not applicable.