Home | Trees | Indices | Help |
|
---|
|
Physical unit
A physical unit is defined by a name (possibly composite), a scaling factor, and the exponentials of each of the SI base units that enter into it. Units can be multiplied, divided, and raised to integer powers.
|
|||
__cmp__(self, other) | |||
__div__(self, other) | |||
__init__(self, names, factor, powers, offset=0) | |||
__mul__(self, other) | |||
__pow__(self, other) | |||
__rdiv__(self, other) | |||
__repr__(self) | |||
__rmul__(self, other) | |||
__str__(self) | |||
float
|
conversionFactorTo(self,
other) Returns the conversion factor from this unit to another unit |
||
(float , float )
|
conversionTupleTo(self,
other) Returns the conversion factor and offset from this unit to another unit |
||
isAngle(self) | |||
bool
|
isCompatible(self,
other) Returns True if the units are compatible, i.e.
|
||
isDimensionless(self) | |||
name(self) | |||
setName(self, name) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0alpha3 on Fri Oct 6 14:45:45 2006 | http://epydoc.sourceforge.net |