Repository navigation
v0.8.4
NumPy calculations
- Add
np.prodandnp.multiply.reducewith exact product units, scalarinitialvalues (including Quantities), boolean input masks, and stagedoutwrites. Dimensional results require the same selected element count in every output slice; dimensionless inputs normalize before reduction. - Add
np.trapezoidwith Quantity ordinates, coordinates, or scalar spacing. The result combines ordinate and coordinate units while preserving NumPy's coordinate order and axis behavior. - Keep comparison-to-ufunc mapping in the optional NumPy adapter and remove redundant Fractionable guards.
Physics notebooks
Convert the blackbody example to a notebook and add damped oscillations, a free Gaussian wave packet, absorbing optical layers, and correlated pendulum measurement uncertainties. Calculations retain Quantities and plot labels follow their units. Notebook sources are committed without outputs or embedded figures.
Browse the five notebooks and setup instructions.
Validated with NumPy 2.1 and 2.5 and with NumPy absent, including installed-wheel runtime and type consumers. Python >= 3.12; NumPy remains optional (unitx[numpy], NumPy >= 2.1). See the support matrix for the precise boundaries.