Popularity
5.1
Stable
Activity
0.0
Stable
9
3
1
Monthly Downloads: 19
Programming language: Haskell
License: GNU General Public License v3.0 only
Tags:
Math
mathexpr alternatives and similar packages
Based on the "Math" category.
Alternatively, view mathexpr alternatives based on common mentions on social networks and blogs.

vector
An efficient implementation of Intindexed arrays (both mutable and immutable), with a powerful loop optimisation framework . 
statistics
A fast, high quality library for computing with statistics in Haskell. 
HerbiePlugin
GHC plugin that improves Haskell code's numerical stability 
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. 
dimensional
Dimensional library variant built on Data Kinds, Closed Type Families, TypeNats (GHC 7.8+). 
computationalalgebra
GeneralPurpose Computer Algebra System as an EDSL in Haskell 
mwcrandom
A very fast Haskell library for generating high quality pseudorandom numbers. 
numhask
A haskell numeric prelude, providing a clean structure for numbers and operations that combine them. 
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 
safedecimal
Safe and very efficient arithmetic operations on fixed decimal point numbers 
equationalreasoning
Agdastyle equational reasoning in Haskell 
sbvPlugin
Formally prove properties of Haskell programs using SBV/SMT. 
polynomial
Haskell library for manipulating and evaluating polynomials 
monoidsubclasses
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. 
vectorthunbox
Deriver for unboxed vectors using Template Haskell
Access the most powerful time series database as a service
Ingest, store, & analyze all types of time series data in a fullymanaged, purposebuilt database. Keep data forever with lowcost storage and superior data compression.
Promo
www.influxdata.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 mathexpr or a related project?
Popular Comparisons
README
mathexpr
Ever wanted to take as input a mathematical expression to fill in values and use it? mathexpr
is exactly what you need.
I also wrote this in JavaScript some time ago: Equation
Examples
Simple evaluation of expressions:
import Data.MathExpr
main = do
expr < getLine  a mathematical expression, e.g. sin x + y ^ 2
 replace x and y with the specified values and evaluate: sin 2 + 5 ^ 2 = 25.909..
print $ evaluate def expr [("x", 2), ("y", 5)]
Using custom operators and functions:
import Data.MathExpr
 operators are in the form (character, precedence, function)
 example: ('+', 0, (+)), ('*', 1, (*))
 the function should have the type (Double > Double > Double)
 the higher the precedence, the sooner the operator operates
 functions are in the form (name, function)
 example: ("ln", log)
 the function should have the type (Double > Double)
main =
let avg a b = (a + b) / 2
let settings = Settings { operators = defaultOperators ++ [('~', 0, avg)]
, functions = defaultFunctions ++ [("trunc", fromIntegral . truncate)]
evaluate settings "3 ~ 5" []  4
evaluate settings "trunc 1.1" []  1