The Art of Interface

Article 10 — Appendix B.2

Complex number source code

Category. Digital signal processing (DSP) software development.

Description. Complex number C++ source code — implementation file.

Reference. Complex number C++ source code — header file.

complex.cpp

//   complex.cpp - implementation of class
//   of complex number
//
//   The code is property of LIBROW
//   You can use it on your own
//   When utilizing credit LIBROW site

//   Include header file
#include "complex.h"

//   Imaginary unity constants
const complex complex::i(0., 1.);
const complex complex::j(0., 1.);