Unitful.jl

Physical quantities with arbitrary units
Popularity
603 Stars
Updated Last
1 Month Ago
Started In
February 2016

CI Coverage Status codecov.io

Unitful.jl

Unitful is a Julia package for physical units. We want to support not only SI units but also any other unit system. We also want to minimize or in some cases eliminate the run-time penalty of units. There should be facilities for dimensional analysis. All of this should integrate easily with the usual mathematical operations and collections that are found in Julia base.

Documentation:

Other packages in the Unitful family

Units packages

Feature additions

  • UnitfulEquivalences.jl: Enables conversion between equivalent quantities of different dimensions, e.g. between energy and wavelength of a photon.
  • UnitfulLatexify.jl: Pretty print units and quantities in LaTeX format.
  • UnitfulBuckinghamPi.jl: Solves for the adimensional Pi groups in a list of Unitful parameters, according to the Buckingham-Pi Theorem.
  • NaturallyUnitful.jl: Convert to and from natural units in physics.
  • UnitfulChainRules.jl: Enables use of Unitful quantities with ChainRules.jl-compatible autodifferentiation systems.
  • DimensionfulAngles.jl: Adds angle as a dimension. This allows dispatching on angles and derived quantities.
  • Dimensionless.jl: Contains tools to switch between dimensional bases, conduct dimensional analysis and solve similitude problems.
  • UnitfulRecipes.jl (deprecated): Adds automatic labels and supports plot axes with units for Plots.jl. (UnitfulRecipes.jl is now included in Plots.jl.)

Related packages

Unitful was inspired by: