mfsolve alternatives and similar packages
Based on the "Math" category.
Alternatively, view mfsolve 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. -
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+). -
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. -
numhask
A haskell numeric prelude, providing a clean structure for numbers and operations that combine them. -
cf
"Exact" real arithmetic for Haskell using continued fractions (Not formally proven correct) -
poly
Fast polynomial arithmetic in Haskell (dense and sparse, univariate and multivariate, usual and Laurent) -
optimization
Some numerical optimization methods implemented in Haskell -
safe-decimal
Safe and very efficient arithmetic operations on fixed decimal point numbers -
equational-reasoning
Agda-style equational reasoning in Haskell -
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. -
polynomial
Haskell library for manipulating and evaluating polynomials -
vector-th-unbox
Deriver for unboxed vectors using Template Haskell
Clean code begins in your IDE with SonarLint
* 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 mfsolve or a related project?
README
MFSolve
MFSolve is an equation solver that solves and evaluates expressions on the fly. It is based on Prof. D.E.Knuth's metafont. The goal of mfsolve is to make the solver useful in an interactive program, by enhancing the bidirectionality of the solver. Like metafont, it can solve linear equations, and evaluate nonlinear expressions. In addition to metafont, it also solves for angles, and makes the solution independend of the order of the equations.
The Expr
type allows for calculations with constants and unknown
variables.
Examples:
Let's define some variables. The SimpleVar
type is a simple wrapper
around String
to provide nice output. The Dependencies
datatype
contains all dependencies and known equations.
let [x, y, t, a] = map (makeVariable . SimpleVar) ["x", "y", "t", "a"]
Solve linear equations:
showVars $ solveEqs emptyDeps
[ 2*x + y === 5,
x - y === 1]
x = 2.0
y = 1.0
Solve for angle (pi/4):
showVars $ solveEqs emptyDeps
[ sin(t) === 1/sqrt(2) ]
t = 0.7853981633974484
Solve for angle (pi/3) and amplitude:
showVars $ solveEqs emptyDeps
[ a*sin(x) === sqrt 3,
a*cos(x) === 1 ]
x = 1.0471975511965979
a = 2.0
Allow nonlinear expression with unknown variables:
showVars $ solveEqs emptyDeps
[ sin(sqrt(x)) === y,
x === 2]
x = 2.0
y = 0.9877659459927355
Find the angle and amplitude when using a rotation matrix:
showVars $ solveEqs emptyDeps
[ a*cos t*x - a*sin t*y === 30,
a*sin t*x + a*cos t*y === 40,
x === 10,
y === 10 ]
x = 10.0
y = 10.0
t = 0.14189705460416402
a = 3.5355339059327373