Did I find the right examples for you? yes no

# sympy.physics.units.s

All Samples(6)  |  Call(0)  |  Derive(0)  |  Import(6)
```Base class for all physical units.

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

```from sympy import integrate, Rational, sqrt, Symbol
from sympy.physics.units import (au, amu, charge, day, find_unit,
foot, km, m, meter, minute, s,
speed_of_light, grams, quart, inch)

```

```def test_has_units():
from sympy.physics.units import m, s

assert (x*m/s).has(x)
assert (x*m/s).has(y, z) is False
```
```def test_sort_key_atomic_expr():
from sympy.physics.units import m, s
assert sorted([-m, s], key=lambda arg: arg.sort_key()) == [-m, s]

```

```from sympy import Rational, Symbol, integrate
from sympy.physics.units import m, s, day, km, foot, meter, au, \
speed_of_light, minute

def test_units():
```

```        raises, Lambda, sstr)
from sympy.utilities.pytest import XFAIL, skip
from sympy.physics.units import m, s

x,y,a,t = symbols('xyat')
```

```    assert expr.has_any_symbols(x, y, z, t, u)  == True