Midpoint
The point halfway between two values.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wolfram Language
Midpoint!Midpoint(a, b)The point halfway between two values.Typed signatures
| Type | Package | Applies |
|---|---|---|
(any, any) -> unknown | structures | always |
Details
- The
AffineMidpointprotocol's member: numbers, complex numbers, and lists componentwise, so vectors, matrices andPoints have midpoints too. Two lists of different shapes have none. Rounduses it throughMidpointOrder(ticks plus midpoints), comparing a value against the midpoint between the ticks either side of it.- Mathlib's
midpoint, defined on an affine space over a ring where 2 is invertible, and Wolfram'sMidpointof the segment between a and b. The protocols themselves are our extension: Mathlib has no class for either.
Examples
Basic #
Properties #
About
| Examples | 13 |
|---|---|
| Checked against | Wolfram Language 9 agree3 differ1 unevaluated |
| Crosswalk | Wolfram Language |
Implementation
mapped
wolframpackages/oracle/src/mappings.tsWolfram's takes the segment as one list of its two ends.