numhask alternatives and similar packages
Based on the "Math" category.
Alternatively, view numhask alternatives based on common mentions on social networks and blogs.
-
vector
An efficient implementation of Int-indexed arrays (both mutable and immutable), with a powerful loop optimisation framework . -
statistics
A fast, high quality library for computing with statistics in Haskell. -
hgeometry
HGeometry is a library for computing with geometric objects in Haskell. It defines basic geometric types and primitives, and it implements some geometric data structures and algorithms. The main two focusses are: (1) Strong type safety, and (2) implementations of geometric algorithms and data structures that have good asymptotic running time guarantees. -
HerbiePlugin
GHC plugin that improves Haskell code's numerical stability -
dimensional
Dimensional library variant built on Data Kinds, Closed Type Families, TypeNats (GHC 7.8+). -
computational-algebra
General-Purpose Computer Algebra System as an EDSL in Haskell -
mwc-random
A very fast Haskell library for generating high quality pseudo-random numbers. -
poly
Fast polynomial arithmetic in Haskell (dense and sparse, univariate and multivariate, usual and Laurent) -
cf
"Exact" real arithmetic for Haskell using continued fractions (Not formally proven correct) -
optimization
Some numerical optimization methods implemented in Haskell -
equational-reasoning
Agda-style equational reasoning in Haskell -
safe-decimal
Safe and very efficient arithmetic operations on fixed decimal point numbers -
polynomial
Haskell library for manipulating and evaluating polynomials -
monoid-subclasses
Subclasses of Monoid with a solid theoretical foundation and practical purposes -
eigen
Haskel binding for Eigen library. Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms. -
modular-arithmetic
A useful type for working with integers modulo some constant.
WorkOS - The modern identity platform for B2B SaaS
* 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 numhask or a related project?
README
numhask
A numeric class hierarchy, providing a structure for numbers and functions that combine them.
Field hierarchy
[[Field Hierarchy](other/field.svg)](numhask/other/field.svg)
NumHask class structure
[[NumHask Hierarchy](other/numhask.svg)](numhask/other/numhask.svg)
numhask
begins with separately named magma-derived classes for addition and multiplication, and then being symetrical in the treatment of the two heirarchies. A short magma structure is provided with the intention of supplying appropriate classes for operators that are neither addition nor multiplication, but this structure is not hooked up to the main classes.
To be as compatible as practical with the existing haskell ecosystem. Ints, Integers, Floats, Doubles and Complex are taken from base and given numhask class instances, so they are also Num instances. Monoid and Semigroup are not used in numhask to maintain compatability.
numhask
replaces all the relevant numeric operators in Prelude, so you're going to get clashes.
QuickCheck tests of numeric laws are included. This also includes tracking where laws are approximate or fail for non-exact numbers.
The usual operators (+) and (*) operators are reserved for commutative relationships, with plus and times being used for non-commutative ones.
In summary, the library doesn't do anything fancy. But if having to define (*)
when you just want a (+)
offends your sensibilities, it may bring some sanity.
NumHask.Prelude
{-# LANGUAGE NoImplicitPrelude #-}
import NumHask.Prelude
'Numhask.Prelude' is designed as a drop-in replacement for Prelude and 'NoImplicitPrelude' is obligatory. Behind the scenes, the module wraps protolude.