piel.base.units
===============

.. py:module:: piel.base.units


Functions
---------

.. autoapisummary::

   piel.base.units.combine_datum
   piel.base.units.unit_mul
   piel.base.units.unit_rmul
   piel.base.units.unit_add
   piel.base.units.unit_radd
   piel.base.units.unit_truediv
   piel.base.units.unit_rtruediv


Module Contents
---------------

.. py:function:: combine_datum(datum1, datum2, operation: str = 'mul')

   Combine two datum based on the operation.
   For multiplication, add the exponents.
   For division, subtract the exponents.


.. py:function:: unit_mul(self, other)

.. py:function:: unit_rmul(self, other)

.. py:function:: unit_add(self, other)

.. py:function:: unit_radd(self, other)

.. py:function:: unit_truediv(self, other)

.. py:function:: unit_rtruediv(self, other)

