API Reference for Enthought Tool Suite 3.2.0

The dimensions of a physical quantity.

This is essentially a thin wrapper around a dictionary which we perform certain operations on.

Example

>>> m = Dimensions({'mass': 1.0})
>>> a = Dimensions({'length': 1.0, 'time': -2.0})
>>> f = Dimensions({'length': 1.0, 'mass': 1.0, 'time': -2.0})
>>> f == m*a
True
>>> f.expansion
"length*mass*time**-2.0"

Inherits from

Attributes

Inherited from base classes

Method summary

Inherited from base classes

Methods

© Copyright 2002-2009 Enthought, Inc.