@ac-kit/math-complex 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,44 +1,229 @@
1
+ import { type IsCloseToOptions } from "@ac-kit/core";
2
+ import type { Brand_ } from "../_brand.js";
1
3
  /**
2
- * A complex number `re + im·i` over IEEE 754 binary64 components.
3
- *
4
- * Represented as a plain tuple so that arrays of complex values stay compact
5
- * and allocation-free operations can write into a caller-provided buffer.
6
- */
7
- export type Complex = [re: number, im: number];
8
- export declare const COMPLEX_ZERO: [0, 0];
9
- export declare const COMPLEX_ONE: [1, 0];
10
- /** The imaginary unit `i`, satisfying `i² = −1`. */
11
- export declare const COMPLEX_I: [0, 1];
12
- export declare function complexAdd(a: Complex, b: Complex): Complex;
13
- export declare function complexSub(a: Complex, b: Complex): Complex;
14
- /** Complex multiplication: `(a + bi)(c + di) = (ac − bd) + (ad + bc)i`. */
15
- export declare function complexMul(a: Complex, b: Complex): Complex;
16
- /**
17
- * Complex division, using Smith's algorithm to avoid the intermediate overflow
18
- * that the naive `(ac + bd) / (c² + d²)` form suffers for large components.
19
- */
20
- export declare function complexDiv(a: Complex, b: Complex): Complex;
21
- export declare function complexNeg(a: Complex): Complex;
22
- /** The complex conjugate `a − bi`. */
23
- export declare function complexConjugate(a: Complex): Complex;
24
- /**
25
- * Multiplicative inverse `z⁻¹ = conj(z) / |z|²`.
26
- *
27
- * @throws When called on zero.
28
- */
29
- export declare function complexInverse(a: Complex): Complex;
30
- /** The modulus `|z| = √(re² + im²)`. */
31
- export declare function complexModulus(a: Complex): number;
32
- /** The squared modulus, avoiding the square root when only ordering matters. */
33
- export declare function complexModulusSq(a: Complex): number;
34
- /** The principal argument `arg(z) ∈ (−π, π]`. */
35
- export declare function complexArgument(a: Complex): number;
36
- /** Builds a complex number from its polar form `r·e^(iθ)`. */
37
- export declare function complexFromPolar(modulus: number, argument: number): Complex;
38
- /** Euler's formula: `cis(θ) = cos θ + i·sin θ`, the unit vector at angle θ. */
39
- export declare function complexCis(argument: number): Complex;
40
- /** The complex exponential `e^z = e^re · (cos im + i·sin im)`. */
41
- export declare function complexExp(a: Complex): Complex;
42
- /** The principal complex logarithm `ln|z| + i·arg(z)`. */
43
- export declare function complexLog(a: Complex): Complex;
4
+ * A complex number `re + im·i`, stored as `[re, im]`. A plain array of two
5
+ * binary64 numbers carrying a type-level brand, so an array literal, a
6
+ * `number[]`, a `Float64Array`, a `Dual` or any other pair is rejected where a
7
+ * complex number is expected.
8
+ *
9
+ * Only {@link complexCreate}, {@link complexOf}, {@link complexClone},
10
+ * {@link complexFromArray} and the functions that write an `out` make one. They
11
+ * all start from an array of non-integer doubles, so every complex number is
12
+ * `PACKED_DOUBLE_ELEMENTS` in V8 even when its parts are whole numbers, and the
13
+ * hot loops that read it stay monomorphic. A literal such as `[1, 0]` is an
14
+ * array of small integers instead, and storing one into a shared `out` turns it
15
+ * into a generic array for good.
16
+ *
17
+ * Every operation follows the quaternions' standard: `out` first, alias-safe
18
+ * (`out` may be any input), no allocation, no throw. Rules for callers who
19
+ * bypass the types (JavaScript, casts, `any`): never store anything but a
20
+ * number in one, no holes, no `push`, no change of `length`, and do not make
21
+ * one with `structuredClone` or `[...float64Array]` (use {@link complexClone},
22
+ * {@link complexFromArray}).
23
+ */
24
+ export type Complex = [re: number, im: number] & Brand_<"Complex">;
25
+ /** A {@link Complex} that is only read. */
26
+ export type ReadonlyComplex = readonly [re: number, im: number] & Brand_<"Complex">;
27
+ /**
28
+ * Creates the complex number `0 + 0i`.
29
+ *
30
+ * Allocates; keep it out of hot loops.
31
+ */
32
+ export declare function complexCreate(): Complex;
33
+ /**
34
+ * Creates the complex number `re + im·i`. A real number is `complexOf(x, 0)`,
35
+ * the imaginary unit `complexOf(0, 1)`.
36
+ *
37
+ * Allocates; keep it out of hot loops.
38
+ */
39
+ export declare function complexOf(re: number, im: number): Complex;
40
+ /**
41
+ * Creates a copy of `a`. Like every creator it starts from a clean array, so a
42
+ * clone of an array of small integers is an array of doubles.
43
+ *
44
+ * Allocates; keep it out of hot loops.
45
+ */
46
+ export declare function complexClone(a: ReadonlyComplex): Complex;
47
+ /**
48
+ * The checked way in from untyped data (JSON, messages, arrays of unknown
49
+ * origin, interleaved `re, im` buffers): `source[offset … offset + 2)` copied
50
+ * into `out`, each element that is not a number written as `NaN`, an index past
51
+ * the end of `source` too, so `out` never holds a non-number. Test the result
52
+ * with {@link complexIsFinite} when `NaN` must not get through. O(1) time, O(1)
53
+ * memory.
54
+ *
55
+ * `source` may be `out` itself: both elements are read before the first write.
56
+ *
57
+ * @param out The complex number to fill.
58
+ * @param source The array to read, of any length and any content.
59
+ * @param offset The index of the real part in `source`.
60
+ * @returns `out`.
61
+ */
62
+ export declare function complexFromArray(out: Complex, source: ArrayLike<number>, offset?: number): Complex;
63
+ /** Writes `re + im·i` into `out`. */
64
+ export declare function complexSet(out: Complex, re: number, im: number): Complex;
65
+ /** Writes a copy of `a` into `out`. */
66
+ export declare function complexCopy(out: Complex, a: ReadonlyComplex): Complex;
67
+ /** Writes the polar form `modulus · e^(i·argument)` into `out`. */
68
+ export declare function complexFromPolar(out: Complex, modulus: number, argument: number): Complex;
69
+ /**
70
+ * Writes Euler's `cis θ = cos θ + i·sin θ`, the unit vector at angle `θ`, into
71
+ * `out`.
72
+ */
73
+ export declare function complexCis(out: Complex, argument: number): Complex;
74
+ /** Writes `a + b` into `out`. `out` may be `a` or `b`. */
75
+ export declare function complexAdd(out: Complex, a: ReadonlyComplex, b: ReadonlyComplex): Complex;
76
+ /** Writes `a − b` into `out`. `out` may be `a` or `b`. */
77
+ export declare function complexSubtract(out: Complex, a: ReadonlyComplex, b: ReadonlyComplex): Complex;
78
+ /** Writes `−a` into `out`. `out` may be `a`. */
79
+ export declare function complexNegate(out: Complex, a: ReadonlyComplex): Complex;
80
+ /** Writes `a · scalar` into `out`, a real factor. `out` may be `a`. */
81
+ export declare function complexMultiplyScalar(out: Complex, a: ReadonlyComplex, scalar: number): Complex;
82
+ /**
83
+ * Writes `a · b = (ac − bd) + (ad + bc)i` into `out`. `out` may be `a` or `b`.
84
+ *
85
+ * Plain arithmetic, as numpy and C99 without Annex G round it: the result is
86
+ * within a few roundings of the exact product relative to `|a|·|b|`, so a part
87
+ * that is small next to the modulus can lose its digits where `ac` and `bd` (or
88
+ * `ad` and `bc`) cancel. {@link complexMultiplyPrecise} keeps them.
89
+ */
90
+ export declare function complexMultiply(out: Complex, a: ReadonlyComplex, b: ReadonlyComplex): Complex;
91
+ /**
92
+ * Writes `a · b` into `out` with each part within 1.5 units in the last place
93
+ * of its exact value, however badly its two products cancel: Kahan's
94
+ * compensated `ac − bd` and `ad + bc` (`@ac-kit/math-scalar`'s
95
+ * `diffOfProductsInPlace`). `[1 + 2⁻²⁷, 1]·[1 − 2⁻²⁷, 1]` has the real part
96
+ * `−2⁻⁵⁴`, where {@link complexMultiply} gives `0`. `out` may be `a` or `b`.
97
+ *
98
+ * About five times the cost of the plain product. Allocates nothing while every
99
+ * product is from `2⁻⁹⁶⁹` to `2¹⁰²²` in magnitude, or zero; beyond, the
100
+ * compensation is settled by the boxed `diffOfProducts`.
101
+ */
102
+ export declare function complexMultiplyPrecise(out: Complex, a: ReadonlyComplex, b: ReadonlyComplex): Complex;
103
+ /**
104
+ * Writes `a / b` into `out` by Smith's algorithm, which divides by the larger
105
+ * part of `b` first, so no intermediate overflows or underflows where the
106
+ * textbook `(ac + bd) / (c² + d²)` squares `b`'s parts and fails for `|b|`
107
+ * beyond about `1e±154` while the quotient is representable. Infinities follow
108
+ * C99 Annex G: a finite number over an infinite one is a signed zero (`NaN` in
109
+ * a part whose Annex G sum `a·c′ ± b·d′` overflows, as `_Cdivd` gives), an
110
+ * infinite one over a finite nonzero one infinite, `∞/∞` is `NaN`. Dividing by
111
+ * zero writes `NaN` parts, where Annex G gives an infinity: no throw, and no
112
+ * direction to pick. `out` may be `a` or `b`.
113
+ */
114
+ export declare function complexDivide(out: Complex, a: ReadonlyComplex, b: ReadonlyComplex): Complex;
115
+ /** Writes the conjugate `re − im·i` into `out`. `out` may be `a`. */
116
+ export declare function complexConjugate(out: Complex, a: ReadonlyComplex): Complex;
117
+ /**
118
+ * Writes the inverse `1 / a` into `out`, by Smith's algorithm as
119
+ * {@link complexDivide}, so it holds at any magnitude whose inverse is
120
+ * representable; the inverse of an infinite number is a signed zero (Annex G).
121
+ * Zero has no inverse: the parts written are `NaN`. `out` may be `a`.
122
+ */
123
+ export declare function complexInvert(out: Complex, a: ReadonlyComplex): Complex;
124
+ /**
125
+ * The modulus `|z| = √(re² + im²)`, the length of `z` in the plane, by
126
+ * `@ac-kit/math-scalar`'s `hypot2`: right at every magnitude, no overflow or
127
+ * underflow on the way, `+∞` when a part is infinite even beside `NaN` (C99
128
+ * `cabs`).
129
+ */
130
+ export declare function complexLength(a: ReadonlyComplex): number;
131
+ /** The squared modulus `re² + im²`, without the square root. */
132
+ export declare function complexLengthSquared(a: ReadonlyComplex): number;
133
+ /** The principal argument `arg(z) = atan2(im, re) ∈ [−π, π]`. */
134
+ export declare function complexArgument(a: ReadonlyComplex): number;
135
+ /** Writes `e^a = e^re · (cos im + i·sin im)` into `out`. `out` may be `a`. */
136
+ export declare function complexExp(out: Complex, a: ReadonlyComplex): Complex;
137
+ /**
138
+ * Writes the principal logarithm `ln|a| + i·arg(a)` into `out`: the imaginary
139
+ * part in `[−π, π]`, the branch cut along the negative real axis, its side
140
+ * taken from the sign of a zero imaginary part. `ln 0` is `−∞ + 0i`. `out` may
141
+ * be `a`.
142
+ */
143
+ export declare function complexLog(out: Complex, a: ReadonlyComplex): Complex;
144
+ /**
145
+ * Writes the principal square root `√a` into `out`: the root with a
146
+ * non-negative real part, and on the negative real axis the one whose imaginary
147
+ * part has the sign of `a`'s (so `√(−4 + 0i) = 2i` and `√(−4 − 0i) = −2i`, the
148
+ * branch cut taken from the sign of zero as C99 Annex G's `csqrt` does). `out`
149
+ * may be `a`.
150
+ *
151
+ * Kahan's formulation: `t = √((|x| + |z|) / 2)` is computed from two
152
+ * non-negative terms, so it never cancels, and the other part comes from `y /
153
+ * 2t`. The naive `√((|z| + x) / 2)`, `√((|z| − x) / 2)` pair loses every digit
154
+ * of the smaller part when `|y| ≪ |x|`. Components near the top of the range
155
+ * are scaled down by 4 and tiny ones up by `2¹⁰⁶` (exact powers of two), so
156
+ * nothing overflows or flushes to zero on the way. Special values follow Annex
157
+ * G: an infinite imaginary part gives `+∞ ± ∞i` even with a `NaN` real part,
158
+ * `−∞ + yi` gives `0 ± ∞i`, `+∞ + yi` gives `+∞ ± 0i`, and `NaN` propagates.
159
+ * O(1) time, no allocation.
160
+ *
161
+ * @example
162
+ * ```ts
163
+ * const root = complexCreate();
164
+ * complexSqrt(root, complexOf(-4, 0)); // [0, 2]
165
+ * complexSqrt(root, complexOf(3, 4)); // [2, 1]
166
+ * complexSqrt(root, complexOf(1, 1e-20)); // [1, 5e-21] — the small part is kept
167
+ * ```;
168
+ */
169
+ export declare function complexSqrt(out: Complex, a: ReadonlyComplex): Complex;
170
+ /**
171
+ * Writes `aⁿ` for an integer exponent into `out`, by binary exponentiation:
172
+ * about `2·log₂|n|` multiplications, each the compensated
173
+ * {@link complexMultiplyPrecise}, instead of the `exp(n · log a)` detour whose
174
+ * `log` and `cis` round `arg a` before it is multiplied by `n`. Exact whenever
175
+ * every intermediate power is representable — Gaussian integers stay integers:
176
+ * `[1, 1]⁸` is `[16, 0]`, not `[16, −3.9e-15]`. `out` may be `a`.
177
+ *
178
+ * `a⁰` is `1` for every `a`, zero and `NaN` included, as `Math.pow` has it. A
179
+ * negative exponent is the reciprocal of the positive power, by Smith's
180
+ * division as {@link complexDivide}, as CPython's complex power does; so `0⁻ⁿ`
181
+ * gives `NaN` parts. An exponent that is not a safe integer gives `NaN` parts
182
+ * too (use `exp(w · log a)` for a real or complex power). O(log |n|) time, no
183
+ * allocation for coordinate-sized powers.
184
+ *
185
+ * @example
186
+ * ```ts
187
+ * const power = complexCreate();
188
+ * complexPowInt(power, complexOf(0, 1), 2); // [-1, 0]
189
+ * complexPowInt(power, complexOf(1, 1), 8); // [16, 0]
190
+ * complexPowInt(power, complexOf(0, 2), -1); // [0, -0.5]
191
+ * ```;
192
+ */
193
+ export declare function complexPowInt(out: Complex, a: ReadonlyComplex, n: number): Complex;
194
+ /**
195
+ * Exact equality of both parts. `0` and `−0` are equal, `NaN` is equal to
196
+ * nothing. See {@link complexIsClose} for a tolerant test.
197
+ */
198
+ export declare function complexEquals(a: ReadonlyComplex, b: ReadonlyComplex): boolean;
199
+ /**
200
+ * Whether two complex numbers are close in the complex plane: `|a − b| ≤
201
+ * max(relTol · max(|a|, |b|), absTol)`, Python's `cmath.isclose`.
202
+ *
203
+ * The distance is the modulus of the difference, not a test per component, so
204
+ * the answer does not change when both numbers are rotated together, and a
205
+ * component that is tiny next to the other cannot fail on its own: `[1, 1e-17]`
206
+ * is close to `[1, 0]` at `relTol: 1e-15`, where a component-wise relative test
207
+ * refuses it. Identical values, infinite ones included, are close; otherwise an
208
+ * infinite or `NaN` component makes them not close. Symmetric. No defaults:
209
+ * omitting both bounds asks for equality. Not transitive, so never a basis for
210
+ * a `Set`, a `Map` or an ordering. O(1) time, O(1) memory.
211
+ *
212
+ * @example
213
+ * ```ts
214
+ * complexIsClose(complexOf(1, 1e-17), complexOf(1, 0), { relTol: 1e-15 }); // true
215
+ * complexIsClose(complexOf(0, 1e-10), complexOf(0, 0), { absTol: 1e-9 }); // true
216
+ * ```;
217
+ *
218
+ * @param a First value.
219
+ * @param b Second value.
220
+ * @param tolerance The relative and absolute bounds, as `@ac-kit/core`'s
221
+ * `isCloseTo` takes them.
222
+ */
223
+ export declare function complexIsClose(a: ReadonlyComplex, b: ReadonlyComplex, tolerance?: IsCloseToOptions): boolean;
224
+ /**
225
+ * Whether both parts are finite numbers: the check to run after parsing
226
+ * untrusted data, as operations never check.
227
+ */
228
+ export declare function complexIsFinite(a: ReadonlyComplex): boolean;
44
229
  //# sourceMappingURL=complex.d.ts.map
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