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

NAG Library Routine Document

F06CLF

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
    7  Accuracy
    9  Example

1  Purpose

F06CLF computes the quotient of two complex scalars.

2  Specification

FUNCTION F06CLF ( A, B, FAIL)
COMPLEX (KIND=nag_wp) F06CLF
COMPLEX (KIND=nag_wp)  A, B
LOGICAL  FAIL

3  Description

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 ​a0​ and ​a/b​ would overflow.
Here cflmax is a large complex value, given by
cflmax=flmax×signRea/b,flmax×signIma/b;
flmax is the real value given by 1/X02AMF, and for real x, signx/0 is taken as signx.

4  References

None.

5  Parameters

1:     A – COMPLEX (KIND=nag_wp)Input
On entry: the value a.
2:     B – COMPLEX (KIND=nag_wp)Input
On entry: the value b.
3:     FAIL – LOGICALOutput
On exit: .TRUE. if a/b would overflow (in which case Req=Imq=flmax) or a=b=0 (in which case q=0); otherwise .FALSE..

6  Error Indicators and Warnings

None.

7  Accuracy

Not applicable.

8  Further Comments

None.

9  Example

None.

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

© The Numerical Algorithms Group Ltd, Oxford, UK. 2012