nag_complex (a02bac) (PDF version)
a02 Chapter Contents
a02 Chapter Introduction
NAG C Library Manual

NAG Library Function Document

nag_complex (a02bac)

+ Contents

    1  Purpose
    7  Accuracy

1  Purpose

nag_complex (a02bac) returns a complex number from real and imaginary parts.

2  Specification

#include <nag.h>
#include <naga02.h>
Complex  nag_complex (double x, double y)

3  Description

None.

4  References

None.

5  Arguments

1:     xdoubleInput
On entry: real part of complex number.
2:     ydoubleInput
On entry: imaginary part of complex number.

6  Error Indicators and Warnings

None.

7  Accuracy

Not applicable.

8  Further Comments

None.

9  Example

This example illustrates the calls to all the complex functions in Chapter a02.

9.1  Program Text

Program Text (a02bace.c)

9.2  Program Data

None.

9.3  Program Results

Program Results (a02bace.r)


nag_complex (a02bac) (PDF version)
a02 Chapter Contents
a02 Chapter Introduction
NAG C Library Manual

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