The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
complex
mir
complex
Generic complex number type
@
optmath
Complex
!
T
complex
(
T
)
(
const
T
re
,
const
T
im
= 0
)
if
(
is
(
T
==
float
) ||
is
(
T
==
double
)
||
is
(
T
==
real
)
)
Meta
Source
See Implementation
mir
complex
modules
math
functions
arg
cabs
complex
conj
fromPolar
structs
Complex
Generic complex number type