Data.SigFig.Evaluate
Description
This module contains effectively one function of interest, which is evaluate. It takes an Expr and evaluates it, applying the correct significant figure rules. To display the resulting Term that evaluate may return, see display.
evaluate
Expr
Term
display
evaluate :: Expr -> Either Text Term Source #
Given an expression tree, evaluate it and return either an error or result.
evaluate' :: Expr -> Term Source #
Like evaluate, but assume the result is a valid term and crash otherwise.