@mark1russell7/interval 0.0.0-bootstrap.0 → 0.1.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Mark Russell
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,39 @@
1
1
  # @mark1russell7/interval
2
2
 
3
- This version is a placeholder. The release workflow of https://github.com/mark1russell7/algebra publishes the real versions. Use a later version.
3
+ This package is the home of the float error bounds of algebra (roadmap item A21). It has intervals with outward rounding, balls with a midpoint and a radius, and the float steps and error terms that they use. Each operation contains the exact result of the operation on each point of its inputs.
4
+
5
+ The package has no runtime dependencies. It is in the layer numbers, so each layer above it can use it. Later bounds of arbitrary precision also go here.
6
+
7
+ ## The functions
8
+
9
+ | Name | Result | Error |
10
+ | --- | --- | --- |
11
+ | `nextUp(x)`, `nextDown(x)` | The next float above or below `x` | Exact |
12
+ | `sumError(a, b, s)` | The error `e` of `s = fl(a + b)`, with `a + b = s + e` (`TwoSum`) | Exact, or `NaN` when `s` is not finite |
13
+ | `productError(a, b, p)` | The error `e` of `p = fl(a * b)`, with `a * b = p + e` (`TwoProduct`) | Exact, or `NaN` near overflow and underflow |
14
+ | `quotientIsExact(a, b, q)` | `true` when `q` is the exact quotient `a / b` | Exact |
15
+ | `addUp`, `mulUp`, `divUp`, `subDown` | A sum, product or quotient of nonnegative floats rounded upward, and a difference rounded downward | One float step at most |
16
+ | `floatRoot(r, k)` | The float root of index `k`, with an odd root of a negative value | The square root is correctly rounded |
17
+ | `interval` | The intervals: `add`, `sub`, `mul`, `div`, `neg`, `pow`, `root`, `min`, `max`, `lt`, `le`, `eq` | Outward, one float step on each end at most |
18
+ | `ball` | The balls: `ball`, `add`, `sub`, `mul`, `div`, `neg`, `pow`, `root`, `min`, `max`, `lt`, `le`, `eq`, `toInterval`, `fromInterval` | A finite radius is a claim |
19
+
20
+ An interval is `readonly [low, high]`, or `null` for the empty interval. An infinite end is no bound on its side.
21
+
22
+ A ball is `{ mid, rad }`. A finite radius is a claim: the exact result is at most `rad` from `mid`. The radius `Infinity` makes no claim. The radius functions `sumRadius`, `productRadius`, `quotientRadius`, `extremeRadius` and `rootRadius` make no object. An evaluator that keeps the midpoint and the radius in two numbers uses them.
23
+
24
+ ```ts
25
+ import { ball, interval } from "@mark1russell7/interval";
26
+
27
+ interval.add([0.1, 0.1], [0.2, 0.2]); // [0.3, 0.3000000000000001]: one step each side of the float sum
28
+ ball.mul(ball.ball(3, 0.5), ball.ball(2)); // { mid: 6, rad: 1 }
29
+ ```
30
+
31
+ ## The law tests
32
+
33
+ - `src/enclosure.test.ts` has a fast-check property for each operation. The property compares the result with the exact rationals of `@mark1russell7/rational` at the ends and the midpoint of each input.
34
+ - Planted operations with a bound one float step too narrow fail the same properties.
35
+ - `src/width.test.ts` is the width gate. A fixed family of inputs from `@mark1russell7/rigor-generators` goes through 6 chains of operations, for intervals and for balls.
36
+ - The gate keeps the median and the largest width of each chain, in float steps, in `test/width-record.json`.
37
+ - A larger width fails the gate. A smaller width also fails, until the record changes with it. So the gate holds each gain.
38
+ - Planted operations with a bound one step wider fail the gate.
39
+ - To write a new record, set `INTERVAL_WIDTH_RECORD=update` and start the width test. Commit the record with the change that moves a width.
@@ -0,0 +1,419 @@
1
+ /**
2
+ * Float error bounds, with no imports. The namespace `interval` has the outward-rounded intervals, and the namespace
3
+ * `ball` has the midpoint-radius balls. The steps of a float, the error-free transforms of a sum and a product, and
4
+ * the directed rounding are also at the top level.
5
+ *
6
+ * @packageDocumentation
7
+ */
8
+ declare namespace interval_d_exports {
9
+ export { Interval, WHOLE, add$1 as add, div$1 as div, eq$1 as eq, le$1 as le, lt$1 as lt, max$1 as max, min$1 as min, mul$1 as mul, neg$1 as neg, nextDown, nextUp, pow$1 as pow, productError, quotientIsExact, root$1 as root, sub$1 as sub, sumError };
10
+ }
11
+ /**
12
+ * Intervals of real numbers with float bounds. Each operation rounds outward, so the exact result of the operation on
13
+ * any reals inside the inputs is inside the output. An infinite bound means that the interval has no bound on that side.
14
+ *
15
+ * `null` is the empty interval: no point of the inputs gives a real value.
16
+ *
17
+ * @packageDocumentation
18
+ */
19
+ /** A closed interval `[low, high]` of reals, or `null` for the empty interval. */
20
+ type Interval = readonly [number, number] | null;
21
+ /** The interval that contains every real. */
22
+ export declare const WHOLE: readonly [number, number];
23
+ /**
24
+ * This function gives the next float above a value.
25
+ *
26
+ * @param x - The value.
27
+ * @returns The smallest float that is larger than `x`. `Infinity` stays `Infinity`, and `NaN` stays `NaN`.
28
+ */
29
+ export declare function nextUp(x: number): number;
30
+ /**
31
+ * This function gives the next float below a value.
32
+ *
33
+ * @param x - The value.
34
+ * @returns The largest float that is smaller than `x`. `-Infinity` stays `-Infinity`, and `NaN` stays `NaN`.
35
+ */
36
+ export declare function nextDown(x: number): number;
37
+ /**
38
+ * This function gives the exact error of a float sum. It uses the error term of `TwoSum` (Knuth).
39
+ *
40
+ * @param a - The first value.
41
+ * @param b - The second value.
42
+ * @param s - The float sum `a + b`.
43
+ * @returns The float `e` with `a + b = s + e` exactly, or `NaN` when `s` is not finite and the term is not reliable.
44
+ */
45
+ export declare function sumError(a: number, b: number, s: number): number;
46
+ /**
47
+ * This function gives the exact error of a float product. It uses the error term of `TwoProduct` (Dekker). Near
48
+ * overflow or underflow the term is not reliable, so the function then gives `NaN`.
49
+ *
50
+ * @param a - The first value.
51
+ * @param b - The second value.
52
+ * @param p - The float product `a * b`.
53
+ * @returns The float `e` with `a * b = p + e` exactly, or `NaN` when the term is not reliable.
54
+ */
55
+ export declare function productError(a: number, b: number, p: number): number;
56
+ /**
57
+ * This function gives the sum of two intervals, rounded outward.
58
+ *
59
+ * @param x - The first interval.
60
+ * @param y - The second interval.
61
+ * @returns An interval that contains each sum of a point of `x` and a point of `y`.
62
+ */
63
+ declare function add$1(x: Interval, y: Interval): Interval;
64
+ /**
65
+ * This function gives the negation of an interval. It is exact.
66
+ *
67
+ * @param x - The interval.
68
+ * @returns The interval of the negated points.
69
+ */
70
+ declare function neg$1(x: Interval): Interval;
71
+ /**
72
+ * This function gives the difference of two intervals, rounded outward.
73
+ *
74
+ * @param x - The first interval.
75
+ * @param y - The interval to subtract.
76
+ * @returns An interval that contains each difference of a point of `x` and a point of `y`.
77
+ */
78
+ declare function sub$1(x: Interval, y: Interval): Interval;
79
+ /**
80
+ * This function gives the product of two intervals, rounded outward.
81
+ *
82
+ * @param x - The first interval.
83
+ * @param y - The second interval.
84
+ * @returns An interval that contains each product of a point of `x` and a point of `y`.
85
+ */
86
+ declare function mul$1(x: Interval, y: Interval): Interval;
87
+ /**
88
+ * This function tells if a float quotient is exact: the product `q * b` is exact and is `a`.
89
+ *
90
+ * @param a - The dividend.
91
+ * @param b - The divisor.
92
+ * @param q - The float quotient `a / b`.
93
+ * @returns `true` when `q` is the exact quotient.
94
+ */
95
+ export declare function quotientIsExact(a: number, b: number, q: number): boolean;
96
+ /**
97
+ * This function gives the quotient of two intervals, rounded outward. A divisor interval that contains zero gives the
98
+ * whole line, and the point zero gives the empty interval. A quotient of two finite bounds moves one step outward on
99
+ * each side when it is not exact. A quotient with an infinite bound is `0` or infinite, and it is a bound as it is.
100
+ *
101
+ * @param x - The dividend.
102
+ * @param y - The divisor.
103
+ * @returns An interval that contains each quotient of a point of `x` and a nonzero point of `y`.
104
+ */
105
+ declare function div$1(x: Interval, y: Interval): Interval;
106
+ /**
107
+ * This function gives an interval to a whole power, rounded outward. The power zero gives the point one, also for a
108
+ * base of zero. A negative power is the reciprocal of the positive power.
109
+ *
110
+ * @param x - The base.
111
+ * @param n - The exponent. It must be a whole number.
112
+ * @returns An interval that contains each power of a point of `x`.
113
+ */
114
+ declare function pow$1(x: Interval, n: number): Interval;
115
+ /**
116
+ * This function gives the root of an interval, rounded outward. The square root uses `Math.sqrt`, which is correctly
117
+ * rounded, and one step on each bound. A larger index starts from `Math.pow` and moves each bound until the outward
118
+ * power of `pow` shows the side of the bound. The root is monotone, so the bounds of the ends are the bounds. An odd
119
+ * index takes negative points as `-root(-x)`. An even index ignores negative points.
120
+ *
121
+ * @param x - The radicand.
122
+ * @param k - The index of the root. It must be a whole number of 2 or more.
123
+ * @returns An interval that contains the real root of each point of `x` that has one.
124
+ */
125
+ declare function root$1(x: Interval, k: number): Interval;
126
+ /**
127
+ * This function gives the interval of the smallest of the points. It is exact.
128
+ *
129
+ * @param x - The first interval.
130
+ * @param y - The second interval.
131
+ * @returns The interval of `min(p, q)` for `p` in `x` and `q` in `y`.
132
+ */
133
+ declare function min$1(x: Interval, y: Interval): Interval;
134
+ /**
135
+ * This function gives the interval of the largest of the points. It is exact.
136
+ *
137
+ * @param x - The first interval.
138
+ * @param y - The second interval.
139
+ * @returns The interval of `max(p, q)` for `p` in `x` and `q` in `y`.
140
+ */
141
+ declare function max$1(x: Interval, y: Interval): Interval;
142
+ /**
143
+ * This function compares two intervals with `<`. The result is the interval of the truth value, with `1` for true.
144
+ *
145
+ * @param x - The left side.
146
+ * @param y - The right side.
147
+ * @returns `[1, 1]` when `p < q` for each pair of points, `[0, 0]` when for none, and `[0, 1]` when it is not known.
148
+ */
149
+ declare function lt$1(x: Interval, y: Interval): Interval;
150
+ /**
151
+ * This function compares two intervals with `<=`. The result is the interval of the truth value, with `1` for true.
152
+ *
153
+ * @param x - The left side.
154
+ * @param y - The right side.
155
+ * @returns `[1, 1]` when `p <= q` for each pair of points, `[0, 0]` when for none, and `[0, 1]` when it is not known.
156
+ */
157
+ declare function le$1(x: Interval, y: Interval): Interval;
158
+ /**
159
+ * This function compares two intervals with `=`. The result is the interval of the truth value, with `1` for true.
160
+ *
161
+ * @param x - The left side.
162
+ * @param y - The right side.
163
+ * @returns `[1, 1]` when both are the same point, `[0, 0]` when they do not meet, and `[0, 1]` when it is not known.
164
+ */
165
+ declare function eq$1(x: Interval, y: Interval): Interval;
166
+ declare namespace ball_d_exports {
167
+ export { Ball, NO_CLAIM, add, ball, claim, div, eq, extremeRadius, fromInterval, le, lt, max, min, mul, neg, pow, productRadius, quotientRadius, root, rootRadius, roundingBound, sub, sumRadius, toInterval };
168
+ }
169
+ /** A ball: the reals at most `rad` from `mid`. */
170
+ interface Ball {
171
+ /** The midpoint. */
172
+ readonly mid: number;
173
+ /** The radius. `Infinity` makes no claim. */
174
+ readonly rad: number;
175
+ }
176
+ /** The ball that makes no claim. */
177
+ declare const NO_CLAIM: Ball;
178
+ /**
179
+ * This function gives a bound of the error `|e|` of the rounding of a float result `m`. An exact error term `e`
180
+ * gives `|e|`. An error term of `NaN` is not known, and it gives `u |m| + 2^-1074`, rounded upward.
181
+ *
182
+ * @param e - The exact error term, or `NaN`.
183
+ * @param m - The float result.
184
+ * @returns A bound of the error, rounded upward.
185
+ */
186
+ declare function roundingBound(e: number, m: number): number;
187
+ /**
188
+ * This function keeps a radius as a claim only when the midpoint is finite and the radius is a number.
189
+ *
190
+ * @param m - The midpoint.
191
+ * @param r - The radius.
192
+ * @returns `r`, or `Infinity` when `m` is not finite or `r` is `NaN`.
193
+ */
194
+ declare function claim(m: number, r: number): number;
195
+ /**
196
+ * This function makes a ball. A midpoint that is not finite gives the radius `Infinity`.
197
+ *
198
+ * @param mid - The midpoint.
199
+ * @param rad - The radius, 0 or more. The default is 0.
200
+ * @returns The ball.
201
+ * @throws RangeError when the radius is negative or `NaN`.
202
+ */
203
+ declare function ball(mid: number, rad?: number): Ball;
204
+ /**
205
+ * This function gives the interval `[mid - rad, mid + rad]` of a ball, rounded outward.
206
+ *
207
+ * @param x - The ball.
208
+ * @returns An interval that contains each point of the ball. A ball that makes no claim gives the whole line.
209
+ */
210
+ declare function toInterval(x: Ball): Interval;
211
+ /**
212
+ * This function gives a ball that contains an interval. The midpoint is the float midpoint of the ends, and the
213
+ * radius is the larger distance to an end, rounded upward.
214
+ *
215
+ * @param x - The interval.
216
+ * @returns A ball that contains each point of `x`. The empty interval and an infinite end give `NO_CLAIM`.
217
+ */
218
+ declare function fromInterval(x: Interval): Ball;
219
+ /**
220
+ * This function gives the radius of a sum `m = fl(a + b)`.
221
+ *
222
+ * @param m - The float sum of the midpoints.
223
+ * @param a - The first midpoint.
224
+ * @param ra - The first radius.
225
+ * @param b - The second midpoint.
226
+ * @param rb - The second radius.
227
+ * @returns The radius of the sum, rounded upward.
228
+ */
229
+ declare function sumRadius(m: number, a: number, ra: number, b: number, rb: number): number;
230
+ /**
231
+ * This function gives the radius of a product `m = fl(a * b)`.
232
+ *
233
+ * @param m - The float product of the midpoints.
234
+ * @param a - The first midpoint.
235
+ * @param ra - The first radius.
236
+ * @param b - The second midpoint.
237
+ * @param rb - The second radius.
238
+ * @returns The radius of the product, rounded upward.
239
+ */
240
+ declare function productRadius(m: number, a: number, ra: number, b: number, rb: number): number;
241
+ /**
242
+ * This function gives the radius of a quotient `q = fl(a / b)`.
243
+ *
244
+ * @param q - The float quotient of the midpoints.
245
+ * @param a - The midpoint of the dividend.
246
+ * @param ra - The radius of the dividend.
247
+ * @param b - The midpoint of the divisor.
248
+ * @param rb - The radius of the divisor.
249
+ * @returns The radius of the quotient, rounded upward, or `Infinity` when the ball of the divisor can hold zero.
250
+ */
251
+ declare function quotientRadius(q: number, a: number, ra: number, b: number, rb: number): number;
252
+ /**
253
+ * This function gives the radius of the largest (`sign = 1`) or the smallest (`sign = -1`) of two balls. When the
254
+ * outward intervals of the balls do not meet, the extreme is one ball, and its radius is the radius. Else the radius
255
+ * is the larger radius.
256
+ *
257
+ * @param sign - `1` for the largest, `-1` for the smallest.
258
+ * @param a - The first midpoint.
259
+ * @param ra - The first radius.
260
+ * @param b - The second midpoint.
261
+ * @param rb - The second radius.
262
+ * @returns The radius of the extreme. Give it to `claim` with the midpoint of the extreme.
263
+ */
264
+ declare function extremeRadius(sign: 1 | -1, a: number, ra: number, b: number, rb: number): number;
265
+ /**
266
+ * This function gives the radius of a root `v = floatRoot(r, k)`. The radius is the largest distance from `v` to an
267
+ * end of `interval.root` of the ball of the radicand, rounded upward.
268
+ *
269
+ * @param v - The float root of the midpoint.
270
+ * @param r - The midpoint of the radicand.
271
+ * @param rr - The radius of the radicand.
272
+ * @param k - The index of the root, a whole number of 2 or more.
273
+ * @returns The radius of the root, or `Infinity` when an even root can meet a negative value.
274
+ */
275
+ declare function rootRadius(v: number, r: number, rr: number, k: number): number;
276
+ /**
277
+ * This function gives the sum of two balls.
278
+ *
279
+ * @param x - The first ball.
280
+ * @param y - The second ball.
281
+ * @returns A ball that contains each sum of a point of `x` and a point of `y`.
282
+ */
283
+ declare function add(x: Ball, y: Ball): Ball;
284
+ /**
285
+ * This function gives the difference of two balls.
286
+ *
287
+ * @param x - The first ball.
288
+ * @param y - The ball to subtract.
289
+ * @returns A ball that contains each difference of a point of `x` and a point of `y`.
290
+ */
291
+ declare function sub(x: Ball, y: Ball): Ball;
292
+ /**
293
+ * This function gives the negative of a ball. It is exact.
294
+ *
295
+ * @param x - The ball.
296
+ * @returns The ball of the negative points.
297
+ */
298
+ declare function neg(x: Ball): Ball;
299
+ /**
300
+ * This function gives the product of two balls.
301
+ *
302
+ * @param x - The first ball.
303
+ * @param y - The second ball.
304
+ * @returns A ball that contains each product of a point of `x` and a point of `y`.
305
+ */
306
+ declare function mul(x: Ball, y: Ball): Ball;
307
+ /**
308
+ * This function gives the quotient of two balls.
309
+ *
310
+ * @param x - The dividend.
311
+ * @param y - The divisor.
312
+ * @returns A ball that contains each quotient of a point of `x` and a point of `y`. A divisor that can hold zero gives
313
+ * the radius `Infinity`.
314
+ */
315
+ declare function div(x: Ball, y: Ball): Ball;
316
+ /**
317
+ * This function gives the smallest of two balls.
318
+ *
319
+ * @param x - The first ball.
320
+ * @param y - The second ball.
321
+ * @returns A ball that contains `min(p, q)` for each point `p` of `x` and `q` of `y`.
322
+ */
323
+ declare function min(x: Ball, y: Ball): Ball;
324
+ /**
325
+ * This function gives the largest of two balls.
326
+ *
327
+ * @param x - The first ball.
328
+ * @param y - The second ball.
329
+ * @returns A ball that contains `max(p, q)` for each point `p` of `x` and `q` of `y`.
330
+ */
331
+ declare function max(x: Ball, y: Ball): Ball;
332
+ /**
333
+ * This function gives a ball to a whole power, with repeated squares. Each product uses the rule of `mul`. A negative
334
+ * power is the quotient of one by the positive power. The power zero gives one, with the radius zero when the base
335
+ * makes a claim.
336
+ *
337
+ * @param x - The base.
338
+ * @param n - The exponent, a whole number.
339
+ * @returns A ball that contains the power of each point of `x`.
340
+ */
341
+ declare function pow(x: Ball, n: number): Ball;
342
+ /**
343
+ * This function gives the root of index `k` of a ball.
344
+ *
345
+ * @param x - The radicand.
346
+ * @param k - The index of the root, a whole number of 2 or more.
347
+ * @returns A ball that contains the real root of each point of `x`. An even root of a ball that can hold a negative
348
+ * value gives the radius `Infinity`.
349
+ */
350
+ declare function root(x: Ball, k: number): Ball;
351
+ /**
352
+ * This function compares two balls with `<`.
353
+ *
354
+ * @param x - The first ball.
355
+ * @param y - The second ball.
356
+ * @returns The truth value `1` or `0` with the radius zero when the balls decide it. Else the float truth value of
357
+ * the midpoints with the radius one.
358
+ */
359
+ declare function lt(x: Ball, y: Ball): Ball;
360
+ /**
361
+ * This function compares two balls with `<=`.
362
+ *
363
+ * @param x - The first ball.
364
+ * @param y - The second ball.
365
+ * @returns The truth value with the rule of `lt`.
366
+ */
367
+ declare function le(x: Ball, y: Ball): Ball;
368
+ /**
369
+ * This function compares two balls with `=`.
370
+ *
371
+ * @param x - The first ball.
372
+ * @param y - The second ball.
373
+ * @returns The truth value with the rule of `lt`.
374
+ */
375
+ declare function eq(x: Ball, y: Ball): Ball;
376
+ /**
377
+ * This function gives the sum of two nonnegative floats, rounded upward.
378
+ *
379
+ * @param x - The first value, 0 or more.
380
+ * @param y - The second value, 0 or more.
381
+ * @returns A float that is at least `x + y`, and at most one step above it.
382
+ */
383
+ export declare function addUp(x: number, y: number): number;
384
+ /**
385
+ * This function gives the product of two nonnegative floats, rounded upward.
386
+ *
387
+ * @param x - The first value, 0 or more.
388
+ * @param y - The second value, 0 or more.
389
+ * @returns A float that is at least `x * y`, and at most one step above it.
390
+ */
391
+ export declare function mulUp(x: number, y: number): number;
392
+ /**
393
+ * This function gives the quotient of two nonnegative floats, rounded upward. A correctly rounded quotient is at most
394
+ * one step low.
395
+ *
396
+ * @param x - The dividend, 0 or more.
397
+ * @param y - The divisor, above 0.
398
+ * @returns A float that is at least `x / y`, and at most one step above it.
399
+ */
400
+ export declare function divUp(x: number, y: number): number;
401
+ /**
402
+ * This function gives the difference `x - y` of two nonnegative floats, rounded downward.
403
+ *
404
+ * @param x - The first value, 0 or more.
405
+ * @param y - The value to subtract, 0 or more.
406
+ * @returns A float that is at most `x - y`, and at most one step below it.
407
+ */
408
+ export declare function subDown(x: number, y: number): number;
409
+ /**
410
+ * This function gives the float root of index `k`. The square root is correctly rounded. A larger index uses
411
+ * `Math.cbrt` or `Math.pow`, which are not correctly rounded. An odd root of a negative value is negative.
412
+ *
413
+ * @param r - The radicand.
414
+ * @param k - The index of the root, 2 or more.
415
+ * @returns The float root.
416
+ */
417
+ export declare function floatRoot(r: number, k: number): number;
418
+ export { type Ball, type Interval, ball_d_exports as ball, interval_d_exports as interval };
419
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":["add","neg","sub","mul","div","pow","root","min","max","lt","le","eq"],"sources":["../src/interval.ts","../src/ball.ts","../src/rounding.ts"],"mappings":";;;;;;;;;;;;;;;;;;;KAUY;;qBAGC;;;;;;;wBAUG,OAAO;;;;;;;wBAeP,SAAS;;;;;;;;;wBAYT,SAAS,WAAW,WAAW;;;;;;;;;;wBAiB/B,aAAa,WAAW,WAAW;;;;;;;;iBA+BnCA,MAAI,GAAG,UAAU,GAAG,WAAW;;;;;;;iBAa/BC,MAAI,GAAG,WAAW;;;;;;;;iBAWlBC,MAAI,GAAG,UAAU,GAAG,WAAW;;;;;;;;iBAmB/BC,MAAI,GAAG,UAAU,GAAG,WAAW;;;;;;;;;wBAuB/B,gBAAgB,WAAW,WAAW;;;;;;;;;;iBActCC,MAAI,GAAG,UAAU,GAAG,WAAW;;;;;;;;;iBA4C/BC,MAAI,GAAG,UAAU,YAAY;;;;;;;;;;;iBAsE7BC,OAAK,GAAG,UAAU,YAAY;;;;;;;;iBAuB9BC,MAAI,GAAG,UAAU,GAAG,WAAW;;;;;;;;iBAW/BC,MAAI,GAAG,UAAU,GAAG,WAAW;;;;;;;;iBAgB/BC,KAAG,GAAG,UAAU,GAAG,WAAW;;;;;;;;iBAc9BC,KAAG,GAAG,UAAU,GAAG,WAAW;;;;;;;;iBAc9BC,KAAG,GAAG,UAAU,GAAG,WAAW;;;;;UC/U7B;;WAEN;;WAEA;;;cAOE,UAAU;;;;;;;;;iBAUP,cAAc,WAAW;;;;;;;;iBAWzB,MAAM,WAAW;;;;;;;;;iBAYjB,KAAK,aAAa,eAAU;;;;;;;iBAW5B,WAAW,GAAG,OAAO;;;;;;;;iBAYrB,aAAa,GAAG,WAAW;;;;;;;;;;;iBAmB3B,UAAU,WAAW,WAAW,YAAY,WAAW;;;;;;;;;;;iBAcvD,cAAc,WAAW,WAAW,YAAY,WAAW;;;;;;;;;;;iBAe3D,eAAe,WAAW,WAAW,YAAY,WAAW;;;;;;;;;;;;;iBAqB5D,cAAc,cAAc,WAAW,YAAY,WAAW;;;;;;;;;;;iBAkB9D,WAAW,WAAW,WAAW,YAAY;;;;;;;;iBAe7C,IAAI,GAAG,MAAM,GAAG,OAAO;;;;;;;;iBAYvB,IAAI,GAAG,MAAM,GAAG,OAAO;;;;;;;iBAWvB,IAAI,GAAG,OAAO;;;;;;;;iBAWd,IAAI,GAAG,MAAM,GAAG,OAAO;;;;;;;;;iBAavB,IAAI,GAAG,MAAM,GAAG,OAAO;;;;;;;;iBAYvB,IAAI,GAAG,MAAM,GAAG,OAAO;;;;;;;;iBAYvB,IAAI,GAAG,MAAM,GAAG,OAAO;;;;;;;;;;iBAcvB,IAAI,GAAG,MAAM,YAAY;;;;;;;;;iBAuCzB,KAAK,GAAG,MAAM,YAAY;;;;;;;;;iBAwB1B,GAAG,GAAG,MAAM,GAAG,OAAO;;;;;;;;iBAWtB,GAAG,GAAG,MAAM,GAAG,OAAO;;;;;;;;iBAWtB,GAAG,GAAG,MAAM,GAAG,OAAO;;;;;;;;wBCvWtB,MAAM,WAAW;;;;;;;;wBAYjB,MAAM,WAAW;;;;;;;;;wBAajB,MAAM,WAAW;;;;;;;;wBAYjB,QAAQ,WAAW;;;;;;;;;wBAanB,UAAU,WAAW"}