.. _puq-limits: Limits and compatibility ======================== PUQ is a typed unit-and-quantity model. It does not treat unit conversion as unchecked numerical rescaling, and it does not silently discard units at API boundaries. Unit and conversion limits -------------------------- - Conversion requires compatible dimensions. Length cannot be converted to time, and invalid unit expressions are rejected by the solver. - Most conversions infer the required system from the source and target units. Cross-system conversions that depend on a physical interpretation need an explicit system and quantity context. - Unit systems are those registered by the implementation. Applications should select from the exposed system names rather than assuming that an arbitrary system abbreviation exists. - Temperature and logarithmic units follow their own conversion rules; they cannot always be treated as ordinary multiplicative units. Quantity and uncertainty limits ------------------------------- - A quantity carries one value or array together with its dimensions and optional uncertainty. Incompatible arithmetic is an error rather than an implicit numeric conversion. - Ordinary arithmetic uses first-order uncertainty propagation. The distribution-aware `monte_carlo` operation is opt-in and assumes the selected input distributions; its results should not be read as a distribution-free uncertainty estimate. - Monte Carlo inputs are scalar. Partially correlated uniform inputs are not supported, and non-finite samples or failed model evaluations raise an error instead of being discarded silently. - Arrays preserve their shape through quantity operations and conversion. The available array operations still follow the native value and expression solver limits. Interface compatibility ----------------------- The C++ implementation is canonical. The Python, C ABI, Rust, WebAssembly/JavaScript, and command-line pages each state which operations their binding exposes and which limitations are specific to that interface. See the :doc:`PUQ interfaces ` section for those pages.