All Projects → MasonProtter → NaturallyUnitful.jl

MasonProtter / NaturallyUnitful.jl

Licence: MIT License
Facilities for using natural units with Unitful.jl

Programming Languages

julia
2034 projects

Projects that are alternatives of or similar to NaturallyUnitful.jl

julia koans
Small exercises to get you used to reading and writing Julia code!
Stars: ✭ 28 (+40%)
Mutual labels:  julialang
FstFileFormat.jl
Julia bindings for the fst format
Stars: ✭ 17 (-15%)
Mutual labels:  julialang
MicroLogging.jl
A simple logging API for julia
Stars: ✭ 26 (+30%)
Mutual labels:  julialang
XUnit.jl
XUnit.jl is a unit-testing framework for Julia.
Stars: ✭ 32 (+60%)
Mutual labels:  julialang
OmniSci.jl
Julia client for OmniSci GPU-accelerated SQL engine and analytics platform
Stars: ✭ 22 (+10%)
Mutual labels:  julialang
deoplete-julia
deoplete.nvim source for julia. Providing julia Syntax Completions for julia, in Neovim (deprecated for julia 0.6+)
Stars: ✭ 12 (-40%)
Mutual labels:  julialang
FastClosures.jl
Faster closure variable capture
Stars: ✭ 39 (+95%)
Mutual labels:  julialang
julia-NotepadPlusPlus
Julia language support for Notepad++
Stars: ✭ 34 (+70%)
Mutual labels:  julialang
BeautifulMakie
https://lazarusa.github.io/BeautifulMakie/
Stars: ✭ 281 (+1305%)
Mutual labels:  julialang
Julia
Algorithms implemented in the Julia programming language. We're collaborating with the Humans of Julia community!
Stars: ✭ 216 (+980%)
Mutual labels:  julialang
DynamicHMCExamples.jl
Examples for Bayesian inference using DynamicHMC.jl and related packages.
Stars: ✭ 33 (+65%)
Mutual labels:  julialang
AtariAlgos.jl
Arcade Learning Environment (ALE) wrapped as a Reinforce.jl environment
Stars: ✭ 38 (+90%)
Mutual labels:  julialang
setup-julia
This action sets up a Julia environment for use in actions by downloading a specified version of Julia and adding it to PATH.
Stars: ✭ 56 (+180%)
Mutual labels:  julialang
GameZero.jl
Zero overhead game development library for the Julia programming language
Stars: ✭ 143 (+615%)
Mutual labels:  julialang
NearestNeighborDescent.jl
Efficient approximate k-nearest neighbors graph construction and search in Julia
Stars: ✭ 34 (+70%)
Mutual labels:  julialang
LatticeQCD.jl
A native Julia code for lattice QCD with dynamical fermions in 4 dimension.
Stars: ✭ 85 (+325%)
Mutual labels:  julialang
FaceDetection.jl
A face detection algorithm using Viola-Jones' rapid object detection framework written in Julia
Stars: ✭ 13 (-35%)
Mutual labels:  julialang
SuiteSparse.jl
Development of SuiteSparse.jl, which ships as part of the Julia standard library.
Stars: ✭ 22 (+10%)
Mutual labels:  julialang
Statistical Learning Method by-Dr.-Li-Hang
基于Julia 1.0写李航博士《统计学习方法》
Stars: ✭ 30 (+50%)
Mutual labels:  julialang
StochasticOptimization.jl
Implementations of stochastic optimization algorithms and solvers
Stars: ✭ 26 (+30%)
Mutual labels:  julialang

CI

NaturallyUnitful.jl

This package reexports Unitful.jl alongside two extra functions:

  1. natural, a function for converting a given quantity to the Physicist's so-called "natural units", in which

    ħ = c = ϵ₀ = kb = 1

    julia> using NaturallyUnitful
    
    julia> natural(1u"m")
    5.067730759202785e6 eV^-1
    
    julia> natural(3e8u"m/s")
    1.000692285594456

    natural also accepts a keyword argument base (defaults to electron volts) which determines what unit your natural quantity is constructed from. Currently, the base unit must have dimensions of energy.

    julia> natural(1u"m", base=u"GeV")
    5.067730759202785e15 GeV^-1
  2. unnatural, a function for converting from natural units to a given unnatural unit such as meters

    julia> unnatural(u"m", 5.067730759202785e6u"eV^-1")
    1.0 m
    
    julia> unnatural(u"m/s", 1)
    2.99792458e8 m s^-1

Installation Instructions

To install, simply open the pkg prompt from the julia REPL by pressing ], and type:

pkg> add NaturallyUnitful
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].