hide long namesshow long names
hide short namesshow short names
Integer type:  int32  int64  nag_int  show int32  show int32  show int64  show int64  show nag_int  show nag_int

PDF version (NAG web site, 64-bit version, 64-bit version)
Chapter Contents
Chapter Introduction
NAG Toolbox

NAG Toolbox Chapter Introduction

A02 — complex arithmetic

Scope of the Chapter

This chapter provides facilities for arithmetic operations involving complex numbers.

Background to the Problems

Of the several representations used for complex numbers, perhaps the most common is a+ib, where a and b are real numbers, and i represents the imaginary number -1. The number a is the real part, and ib the imaginary part.
For the basic arithmetic operations of addition, subtraction and multiplication, the inclusion of functions was not considered worthwhile. Their coding would be short and no special techniques need be used.
In complex number operations of a more complicated nature, special precautions may have to be taken to avoid unnecessary overflow and underflow at intermediate stages of the computation. This has led to the inclusion of functions in this chapter.

Functionality Index

Complex numbers, 
    division nag_complex_divide (a02ac)
    modulus nag_complex_abs (a02ab)
    square root nag_complex_sqrt (a02aa)

PDF version (NAG web site, 64-bit version, 64-bit version)
Chapter Contents
Chapter Introduction
NAG Toolbox

© The Numerical Algorithms Group Ltd, Oxford, UK. 2009–2015