Popularity
2.8
Growing
Activity
0.0
Stable
0
4
0
Monthly Downloads: 1
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags:
Numeric
Latest version: v0.1.0.0
hafar alternatives and similar packages
Based on the "Numeric" category.
Alternatively, view hafar alternatives based on common mentions on social networks and blogs.
-
sparse-linear-algebra
Numerical computation in native Haskell -
log-domain
This package provides log-domain floats, doubles and complex numbers for Haskell. -
tdigest
On-line accumulation of rank-based statistics such as quantiles and trimmed means -
limp
ideally, this will become a pure Haskell library for Linear Integer/Mixed Programming -
microlens-aeson
Lenses and Traversals for Aeson, based on Microlens. -
hasty-hamiltonian
Speedy gradient-based traversal through parameter space. -
mwc-probability-transition
A Markov stochastic transition operator with logging -
numeric-ranges
DSL written in Haskell that provides a set of tools for working with both open and closed numeric intervals. -
nat-sized-numbers
Arbitrarily sized wraparound numeric types. Useful for testing -
approx
The library is created to allow for a easy-to-use reasonable way of emulating approx in Haskell. -
simple-units
Haskell library for performing arithmetic with SI units with type-checked dimensional analysis -
hmatrix-nlopt
High-level hmatrix-compatible bindings to NLOPT from Haskell -
gutenberg-fibonaccis
The first 1001 Fibonacci numbers, retrieved from the Gutenberg Project.
Updating dependencies is time-consuming.
Solutions like Dependabot or Renovate update but don't merge dependencies. You need to do it manually while it could be fully automated! Add a Merge Queue to your workflow and stop caring about PR management & merging. Try Mergify for free.
Promo
blog.mergify.com
* 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 hafar or a related project?
README
Hafar
Hafar is an implementation of affine arithmetic in haskell.
Building
To build the library, simply run
# stack build
or if using cabal
# cabal install --only-dependencies
# cabal build
Example
All operations with affine forms must be done inside the AFM monad.
import Numeric.Interval hiding (interval)
x1 = do
a <- newFromInterval $ 4...6
b <- newFromInterval $ 4...6
return . interval $ a - b
evalAFM x1 -- evaluates to approximately -2 ... 2
x2 = do
a <- newFromInterval $ 4...6
return . interval $ a - a
evalAFM x2 -- evaluates to approximately 0 ... 0