Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Allow calculations using physical quantities

Project description

PhysicalQuantities is a Python module that allows calculations to be aware of physical units. Built-in unit conversion ensures that calculations will result in the correct unit.

The main goals are:
  • easy use, especially conversion, scaling and interoperating with different units
  • focus on using units for engineering tasks
  • provide logarithmic dB calculations
  • allow seamless Numpy array operation

The module also contains an extension for IPython. This allows much simplified usage by typing in physical quantities as number and unit:

>>> a = 1m ; b = 1s
>>> print("a=", a, ", b=",b,", a/b=", a/b)
a= 1 m , b= 1 s , a/b= 1.0 m/s
>>> u = 10V
>>> u.dB
>>> 20.0 dBV

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for physicalquantities, version 0.9.1
Filename, size File type Python version Upload date Hashes
Filename, size PhysicalQuantities-0.9.1.tar.gz (25.5 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page