1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Complex numbers — an in-crate, zero-dependency type.
//!
//! `Complex<T>` is a ring when `T` is a ring and a field when `T` is a
//! field; the tower impls live in `crate::impls::complex` (generated by
//! batch-impl). The alternative — a feature-gated bridge to `num-complex` —
//! is deferred: keeping the core zero-dependency outweighs re-exporting a
//! well-known type here.
use fmt;
/// A complex number `re + im·i` over a scalar type `T`.