|
|
|
|
|
| Description |
| Symbolic number, i.e., these are not numbers at all, but just build
a representation of the expressions.
This implementation is incomplete in that it allows comnstruction,
but not deconstruction of the expressions. It's mainly useful for
debugging.
|
|
| Synopsis |
|
|
|
| Documentation |
|
| data Sym a |
| Symbolic numbers over some base type for the literals.
| Instances | |
|
|
| var :: String -> Sym a |
| Create a variable.
|
|
| con :: a -> Sym a |
| Create a constant (useful when it is not a literal).
|
|
| subst :: Num a => String -> Sym a -> Sym a -> Sym a |
| The expression subst x v e substitutes the expression v for each
occurence of the variable x in e.
|
|
| unSym :: Show a => Sym a -> a |
|
| Produced by Haddock version 0.8 |