Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 226 Bytes

File metadata and controls

12 lines (10 loc) · 226 Bytes
import numpy as np
import pint

unit = pint.UnitRegistry()  # for clarity, we use 'unit' instead of the default 'ureg'
Q_ = unit.Quantity 

g  = 9.8  * unit.newton / unit.kg
m = Q_(1.0, 'kg')
force = m * g
print(force)