mathexpr-0.3.0.0: Parse and evaluate math expressions with variables and functions
Numeric.MathExpr
Synopsis
evaluate :: Settings -> String -> [(String, Double)] -> Double Source #
Evaluate an expression Example: `evaluate def "x + y ^ 2" [("x", 1), ("y", 2)]
data Settings Source #
Constructors
Fields
Instances
Methods
def :: Settings #
defaultFunctions :: [([Char], Double -> Double)] Source #
defaultOperators :: [(Char, Int, Double -> Double -> Double)] Source #