Ada Programming/Libraries/Ada.Numerics.Generic Complex Types

is a unit of the Predefined Language Environment since Ada 95.

The generic package defines complex type for a defined floating point type. Being generic it can not only be used for predefined floating point types but also for any user defined floating type.

Usage
There is an extensive usage guide in Ada Programming/Mathematical calculations. Here the relevant extract:

Ada.Numerics.Generic_Complex_Types; Numeric_7 Value_Type  12 -999_999_999_999.0e999 .. 999_999_999_999.0e999; Complex_Types  Ada.Numerics.Generic_Complex_Types (      Value_Type); Complex_Types.Complex;

Specification
Real Pure Generic_Complex_Types Complex Re Im Real Imaginary Preelaborable_Initialization Imaginary i  Imaginary j  Imaginary Re X Complex    Real Im X Complex    Real Im X Imaginary  Real Set_Re X    Complex Re      Real Set_Im X    Complex Im      Real Set_Im X      Imaginary Im      Real Compose_From_Cartesian Re Im Real  Complex Compose_From_Cartesian Re     Real  Complex Compose_From_Cartesian Im     Imaginary  Complex Modulus X     Complex  Real ""  Right  Complex  Real  Modulus Argument X     Complex    Real Argument X     Complex Cycle Real  Real Compose_From_Polar Modulus Argument        Real Complex Compose_From_Polar Modulus Argument Cycle Real Complex ""      Right  Complex  Complex ""      Right  Complex  Complex Conjugate X     Complex  Complex "" Left Right Complex  Complex "" Left Right Complex  Complex "" Left Right Complex  Complex "" Left Right Complex  Complex "" Left Complex Right  Integer  Complex ""      Right  Imaginary  Imaginary ""      Right  Imaginary  Imaginary Conjugate X     Imaginary  Imaginary  "-" ""    Right  Imaginary  Real "" Left Right Imaginary  Imaginary "" Left Right Imaginary  Imaginary "" Left Right Imaginary  Real "" Left Right Imaginary  Real "" Left Imaginary Right  Integer  Complex "" Left Right  Imaginary  Boolean "" Left Right Imaginary  Boolean "" Left Right  Imaginary  Boolean "" Left Right Imaginary  Boolean "" Left Complex   Right  Real  Complex "" Left Real Right  Complex    Complex "" Left Complex   Right  Real  Complex "" Left Real Right  Complex    Complex "" Left Complex   Right  Real  Complex "" Left Real Right  Complex    Complex "" Left Complex   Right  Real  Complex "" Left Real Right  Complex    Complex "" Left Complex   Right  Imaginary  Complex "" Left Imaginary Right  Complex    Complex "" Left Complex   Right  Imaginary  Complex "" Left Imaginary Right  Complex    Complex "" Left Complex   Right  Imaginary  Complex "" Left Imaginary Right  Complex    Complex "" Left Complex   Right  Imaginary  Complex "" Left Imaginary Right  Complex    Complex "" Left Imaginary Right  Real  Complex "" Left Real Right  Imaginary  Complex "" Left Imaginary Right  Real  Complex "" Left Real Right  Imaginary  Complex "" Left Imaginary Right  Real  Imaginary "" Left Real Right  Imaginary  Imaginary "" Left Imaginary Right  Real  Imaginary "" Left Real Right  Imaginary  Imaginary Imaginary  Real i  Imaginary  10 j  Imaginary  10 AdaNumericsGeneric_Complex_Types

Wikibook

 * Ada Programming
 * Ada Programming/Libraries
 * Ada Programming/Mathematical calculations