Relation¶
- class nodimo.relation.Relation(*quantities: Quantity, name: str = 'f')[source]¶
Creates a relation between quantities.
- Parameters:
- *quantitiesQuantity
Quantities that constitute the relation.
- Attributes:
- quantitieslist[Quantity]
Quantities that constitute the relation.
Methods
show
- Raises:
- ValueError
If there is more than one dependent quantity.
Examples
>>> from nodimo import Quantity, Relation >>> F = Quantity('F', M=1, L=1, T=-2, dependent=True) >>> m = Quantity('m', M=1) >>> a = Quantity('a', L=1, T=-2) >>> rel = Relation(F, m, a)