Did I find the right examples for you? yes no

All Samples(7)  |  Call(3)  |  Derive(0)  |  Import(4)
Base class for all physical units.

Create own units like:
m = Unit("meter", "m")

src/a/e/Aesthete-0.4.2/aesthete/glypher/Dynamic.py   Aesthete(Download)
try :
    from sympy.core.numbers import *
    from sympy.physics.units import Unit
except :
    pass

src/s/y/sympy-HEAD/sympy/utilities/tests/test_pickling.py   sympy(Download)
#================== physics =====================
from sympy.physics.paulialgebra import Pauli
from sympy.physics.units import Unit
 
 
def test_physics():
    for c in (Unit, Unit("meter", "m"), Pauli, Pauli(1)):

src/s/y/sympy-HEAD/sympy/core/tests/test_args.py   sympy(Download)
def test_sympy__physics__units__Unit():
    from sympy.physics.units import Unit
    assert _test_args(Unit("meter", "m"))
 
 

src/s/y/sympy-polys-HEAD/sympy/utilities/tests/test_pickling.py   sympy-polys(Download)
#================== physics =====================
from sympy.physics.paulialgebra import Pauli
from sympy.physics.units import Unit
 
def test_physics():
    for c in (Unit, Unit("meter", "m"), Pauli, Pauli(1)):