-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Parse and evaluate math expressions with variables and functions -- -- A simple tool to evaluate math expressions as strings with support for -- custom functions and operators @package mathexpr @version 0.1.0.0 module Data.MathExpr -- | Evaluate an expression Example: `evaluate def "x + y ^ 2" [("x", 1), -- ("y", 2)] evaluate :: Settings -> String -> [(String, Double)] -> Double data Settings Settings :: [(Char, Int, Double -> Double -> Double)] -> [(String, Double -> Double)] -> Settings [operators] :: Settings -> [(Char, Int, Double -> Double -> Double)] [functions] :: Settings -> [(String, Double -> Double)] defaultFunctions :: [([Char], Double -> Double)] defaultOperators :: [(Char, Int, Double -> Double -> Double)] instance Data.Default.Class.Default Data.MathExpr.Settings