CenteredInterval
A ball c ± r with center-radius arithmetic -- the complex-capable sibling of Interval. Provided by @enumeratio/analytic.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
CenteredInterval!CenteredInterval(c, r)the ball of radius r centered at c.CenteredInterval(interval)an Interval converted to center-radius form.Typed signatures
| Type | Package | Applies |
|---|---|---|
(number | set<real>, real?) -> number | analytic | always |
Details
- Covers Add (centers add, radii add) and a scalar Multiply (the center scales by the factor, the radius by its absolute value). Subtraction runs through Add and Negate the same way Interval's does, which is why radii add under subtraction too, not cancel.
- Does NOT round outward the way Wolfram's rigorous interval arithmetic does -- that needs a kernel to pin the rounding direction (see enumeratio/notatio#113 §2), so every example here uses exact endpoints, where there is nothing to round.
- Two CenteredInterval operands multiplied together has no example and no simple exact rule here, so it is not handled.
Plot
Examples
Scope #
About
| Examples | 4 |
|---|---|
| Checked against | Wolfram Language 4 differ |
| Crosswalk | Wolfram Language |