Advise-me-0.1: Assessment services for the Advise-Me project

Maintainerbastiaan.heeren@ou.nl
Stabilityprovisional
Portabilityportable (depends on ghc)
Safe HaskellNone
LanguageHaskell98

Recognize.Strategy.Applications

Description

This module exposes a set of functions for manipulating and parsing expressions using strategies.

Synopsis

Documentation

normalize :: Expr -> (Expr, [Attribute]) Source #

Normalizes (commutativity, associativity, distributivity, etc) an expression. Returns a product of a normalized expression and applied rewrites

simplify :: Expr -> (Expr, [Attribute]) Source #

Simplifies an expression. Returns a product of the simplified expression and applied rewrites.

pSolveLinear :: (ParseLog m, Parse m Math, Relational f) => Maybe (f Expr, Math) -> m (Relation Expr, [Step]) Source #

Parses expressions that solve a linear equation. Returns the steps (containing rewrites) taken.