Physlib

Physlib.Units.Integral

3 declarations

instance

For a normed vector space MM over R\mathbb{R} equipped with a physical dimension (via the `HasDim` class) and a measurable structure where scalar multiplication is measurable, the type of measures M(M)\mathcal{M}(M) is unit-dependent. The scaling of a measure μM(M)\mu \in \mathcal{M}(M) between two unit choices u1u_1 and u2u_2 is defined as the pushforward measure fμf_* \mu, where f:MMf: M \to M is the map that scales elements of MM according to the change from u1u_1 to u2u_2.

theorem

scaleUnit(u1,u2,μ)=fμ\text{scaleUnit}(u_1, u_2, \mu) = f_* \mu

#scaleUnit_measure

Let MM be a measurable space equipped with a physical dimension. For any two systems of unit choices u1,u2u_1, u_2 and any measure μ\mu on MM, the unit scaling of the measure μ\mu is equal to the pushforward measure of μ\mu under the scaling map of the underlying space. That is, scaleUnit(u1,u2,μ)=fμ\text{scaleUnit}(u_1, u_2, \mu) = f_* \mu where f:MMf: M \to M is the map defined by f(m)=scaleUnit(u1,u2,m)f(m) = \text{scaleUnit}(u_1, u_2, m), which scales elements of MM according to the change from unit system u1u_1 to u2u_2.

theorem

The integral fdμ\int f \, d\mu is dimensionally correct

#integral_isDimensionallyCorrect

Let dd be a physical dimension and MM be a measurable space. Let [G][G] denote the physical dimension associated with the type GG. The theorem states that the integral operator (μ,f)Mf(x)dμ(x) (\mu, f) \mapsto \int_M f(x) \, d\mu(x) is dimensionally correct. Specifically, if μ\mu is a measure on MM with dimension dd, and f:MGf: M \to G is a function with dimension [G]d1[G] \cdot d^{-1}, then the resulting integral fdμ\int f \, d\mu has the physical dimension [G][G].