piel.base.units#

Functions#

combine_datum(datum1, datum2[, operation])

Combine two datum based on the operation.

unit_mul(self, other)

unit_rmul(self, other)

unit_add(self, other)

unit_radd(self, other)

unit_truediv(self, other)

unit_rtruediv(self, other)

Module Contents#

combine_datum(datum1, datum2, operation: str = 'mul')[source]#

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

unit_mul(self, other)[source]#
unit_rmul(self, other)[source]#
unit_add(self, other)[source]#
unit_radd(self, other)[source]#
unit_truediv(self, other)[source]#
unit_rtruediv(self, other)[source]#