Giter VIP home page Giter VIP logo

units.jl's Introduction

Units.jl

Algebraically manipulate units and physical quantities in Julia. Units.jl uses the type system for logical unit system hierarchies, unit conversion, and flexible user-defined units. Future functionality aims to include mks and cgs units, constants, dimensional analysis, and electromagnetic units in different cgs sub-systems. I started this project to explore Julia. Other active projects that support unit analysis in Julia include Physical.jl and SIUnits.jl. The API is modelled after Python's Astropy units sub-module.

Installing

As this package is still in a state of active development, it is not currently available in the Julia package archive. To install and try it:

julia> Pkg.update()
julia> Pkg.clone("git://github.com/autocorr/Units.jl.git")
julia> import Units; u = Units;

Example Usage

Detailed documentation will be made available on the ReadTheDocs page once all core functionality has been implemented. Example usage of Units.jl includes:

julia> import Units; u = Units;
julia> c = 2 * u.meter^(1//2) / u.second
2 Meter^¹/₂ Second^-1
julia> c.<tab>
base dim   mag   ord   unit
julia> (c.base, q.unit)
(Length,Meter)
julia> c.dim
Dimension(d=1//2, m=0, t=-1,  i=0, θ=0, n=0, j=0)

License

Units.jl is released under the MIT license.

Info

Author Brian Svoboda
Email [email protected]
Source https://github.com/autocorr/Units.jl
Docs https://unitsjl.readthedocs.org
Version alpha
Build Build Status

units.jl's People

Contributors

autocorr avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.