License | MIT |
---|---|
Safe Haskell | None |
Language | Haskell2010 |
This module provides the interface of Egison's computer algebra system.
Documentation
data ScalarData Source #
Instances
Eq ScalarData Source # | |
Defined in Language.Egison.Math.Expr (==) :: ScalarData -> ScalarData -> Bool # (/=) :: ScalarData -> ScalarData -> Bool # | |
Show ScalarData Source # | |
Defined in Language.Egison.Math.Expr showsPrec :: Int -> ScalarData -> ShowS # show :: ScalarData -> String # showList :: [ScalarData] -> ShowS # | |
Printable ScalarData Source # | |
Defined in Language.Egison.Math.Expr isAtom :: ScalarData -> Bool Source # pretty :: ScalarData -> String Source # | |
ToMathExpr ScalarData Source # | |
Defined in Language.Egison.PrettyMath.AST toMathExpr :: ScalarData -> MathExpr Source # | |
ValuePattern ScalarM ScalarData Source # | |
Defined in Language.Egison.Math.Expr value :: ScalarData -> Pattern () ScalarM ScalarData () # valueM :: ScalarM -> ScalarData -> () # | |
Show (Index ScalarData) Source # | |
Defined in Language.Egison.Math.Expr | |
Matcher ScalarM ScalarData Source # | |
Defined in Language.Egison.Math.Expr |
type Monomial = [(SymbolExpr, Integer)] Source #
data SymbolExpr Source #
Symbol Id String [Index ScalarData] | |
Apply ScalarData [ScalarData] | |
Quote ScalarData | |
FunctionData ScalarData [ScalarData] [ScalarData] |
Instances
Eq SymbolExpr Source # | |
Defined in Language.Egison.Math.Expr (==) :: SymbolExpr -> SymbolExpr -> Bool # (/=) :: SymbolExpr -> SymbolExpr -> Bool # | |
Show SymbolExpr Source # | |
Defined in Language.Egison.Math.Expr showsPrec :: Int -> SymbolExpr -> ShowS # show :: SymbolExpr -> String # showList :: [SymbolExpr] -> ShowS # | |
Printable SymbolExpr Source # | |
Defined in Language.Egison.Math.Expr isAtom :: SymbolExpr -> Bool Source # pretty :: SymbolExpr -> String Source # | |
ToMathExpr SymbolExpr Source # | |
Defined in Language.Egison.PrettyMath.AST toMathExpr :: SymbolExpr -> MathExpr Source # | |
ValuePattern SymbolM SymbolExpr Source # | |
Defined in Language.Egison.Math.Expr value :: SymbolExpr -> Pattern () SymbolM SymbolExpr () # valueM :: SymbolM -> SymbolExpr -> () # | |
Matcher SymbolM SymbolExpr Source # | |
Defined in Language.Egison.Math.Expr | |
ToMathExpr (SymbolExpr, Integer) Source # | |
Defined in Language.Egison.PrettyMath.AST toMathExpr :: (SymbolExpr, Integer) -> MathExpr Source # |
class Printable a where Source #
Instances
Printable SymbolExpr Source # | |
Defined in Language.Egison.Math.Expr isAtom :: SymbolExpr -> Bool Source # pretty :: SymbolExpr -> String Source # | |
Printable TermExpr Source # | |
Printable PolyExpr Source # | |
Printable ScalarData Source # | |
Defined in Language.Egison.Math.Expr isAtom :: ScalarData -> Bool Source # pretty :: ScalarData -> String Source # |
pattern ZeroExpr :: ScalarData Source #
pattern SingleSymbol :: SymbolExpr -> ScalarData Source #
pattern SingleTerm :: Integer -> Monomial -> ScalarData Source #
rewriteSymbol :: ScalarData -> ScalarData Source #
mathPlus :: ScalarData -> ScalarData -> ScalarData Source #
mathMult :: ScalarData -> ScalarData -> ScalarData Source #
mathDiv :: ScalarData -> ScalarData -> ScalarData Source #
mathNumerator :: ScalarData -> ScalarData Source #
mathNegate :: ScalarData -> ScalarData Source #