Skip to main content

invert

Inverts a UnitAlgebra.

Syntax

inv = ua.invert()

Parameters

  • returns inverted UnitAlgebra

Example

from sst import UnitAlgebra

ua = UnitAlgebra("1GHz")
print("A clock frequency of %s has a cycle time of %s"%(ua.bestSI(), ua.invert().bestSI()) )
A clock frequency of 1 GHz has a cycle time of 1 ns

Import

from sst import UnitAlgebra