Skip to content

v0.8.4

Choose a tag to compare

@DaitTHU DaitTHU released this 20 Oct 07:49

NumPy calculations

  • Add np.prod and np.multiply.reduce with exact product units, scalar initial values (including Quantities), boolean input masks, and staged out writes. Dimensional results require the same selected element count in every output slice; dimensionless inputs normalize before reduction.
  • Add np.trapezoid with 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.