significant-figures-0.1.0.0: Calculate expressions involving significant figures.
Safe HaskellNone
LanguageHaskell2010

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.

Synopsis

Documentation

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.