Popularity
0.5
Stable
Activity
0.0
Stable
1
0
0
Monthly Downloads: 15
Programming language: Haskell
License: MIT License
simpleunits alternatives and similar packages
Based on the "Numeric" category.
Alternatively, view simpleunits alternatives based on common mentions on social networks and blogs.

sparselinearalgebra
Numerical computation in native Haskell 
logdomain
This package provides logdomain floats, doubles and complex numbers for Haskell. 
tdigest
Online accumulation of rankbased statistics such as quantiles and trimmed means 
limp
ideally, this will become a pure Haskell library for Linear Integer/Mixed Programming 
mightymetropolis
The classic Metropolis sampling algorithm. 
microlensaeson
Lenses and Traversals for Aeson, based on Microlens. 
mwcprobabilitytransition
A Markov stochastic transition operator with logging 
hastyhamiltonian
Speedy gradientbased traversal through parameter space. 
numericranges
DSL written in Haskell that provides a set of tools for working with both open and closed numeric intervals. 
natsizednumbers
Arbitrarily sized wraparound numeric types. Useful for testing 
hmatrixnlopt
Highlevel hmatrixcompatible bindings to NLOPT from Haskell 
approx
The library is created to allow for a easytouse reasonable way of emulating approx in Haskell. 
gutenbergfibonaccis
The first 1001 Fibonacci numbers, retrieved from the Gutenberg Project. 
affineinvariantensemblemcmc
Generalpurpose sampling
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of simpleunits or a related project?
README
simpleunits
A Haskell library for simple arithmetic with SI units using typechecked dimensional analysis.
>>> let newton = kilogram .* meter ./ (second .* second)
>>> 23*newton
23.0 kg*m/s^2
>>> let g = 6.67408e11 * newton .* (meter .* meter) ./ (kilogram .* kilogram)
>>> g  gravitational constant
6.67408e11 m^3/kg*s^2
>>> let gravity m1 m2 r = g .* (m1 * kilogram) .* (m2 * kilogram) ./ (r*meter .* r*meter)
>>> let earth_mass = 5.972e24 * kilogram
>>> let mars_mass = 6.417e23 * kilogram
>>> let earth_radius = 6371 * kilo meter
>>> let mars_radius = 3389.5 * kilo meter
>>> let weight_on_earth mass = gravity mass earth_mass earth_radius
>>> let weight_on_mars mass = gravity mass mars_mass mars_radius
>>> weight_on_earth (80 * kilogram)
785.5719790179963 kg*m/s^2
>>> weight_on_mars (80 * kilogram)
298.22370259533704 kg*m/s^2
>>> weight_on_mars 1 ./ weight_on_earth 1
0.3796261966575378 <adimensional>