Skip to main content

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.

Source Distribution

PhysicalQuantities-0.9.1.tar.gz (25.5 kB view details)

Uploaded Source

File details

Details for the file PhysicalQuantities-0.9.1.tar.gz.

File metadata

  • Download URL: PhysicalQuantities-0.9.1.tar.gz
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for PhysicalQuantities-0.9.1.tar.gz
Algorithm Hash digest
SHA256 fbeb102b59e6c46d391608a31334f4c7f336bd23a9f0e376679a0b3a34cece73
MD5 7dcd1358d932ca676e31266104e26d91
BLAKE2b-256 788869de9f6e5daebaa64d0dd5d96674cd5e6014612300d6f0601ec3e688b93e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page