Maintainer | bastiaan.heeren@ou.nl |
---|---|
Stability | provisional |
Portability | portable (depends on ghc) |
Safe Haskell | None |
Language | Haskell98 |
Synopsis
- calcPower :: Rule Expr
- calcPowerPlus :: Rule Expr
- calcPowerMinus :: Rule Expr
- addExponents :: Rule Expr
- mulExponents :: Rule Expr
- subExponents :: Rule Expr
- distributePower :: Rule Expr
- distributePowerDiv :: Rule Expr
- reciprocal :: Rule Expr
- reciprocalInv :: Rule Expr
- reciprocalFrac :: Rule Expr
- calcPowerRatio :: Rule Expr
- simplifyPower :: Rule Expr
- onePower :: Rule Expr
- powerOne :: Rule Expr
- zeroPower :: Rule Expr
- powerZero :: Rule Expr
- divBase :: Rule Expr
- reciprocalVar :: Rule Expr
- reciprocalPower :: Rule Expr
- factorAsPower :: Rule Expr
- calcPlainRoot :: Rule Expr
- simpleAddExponents :: Rule Expr
- power2root :: Rule Expr
- root2power :: Rule Expr
- logarithm :: Rule (Equation Expr)
- myFractionTimes :: Rule Expr
- pushNegOut :: Rule Expr
Power rules
calcPowerPlus :: Rule Expr Source #
- root n x, ...
- BHR: not used. Better to turn this into OrList (Relation Expr)
addExponents :: Rule Expr Source #
mulExponents :: Rule Expr Source #
(a^x)^y = a^(x*y)
subExponents :: Rule Expr Source #
a*x^y b*x^q = ab * x^(y-q)
distributePower :: Rule Expr Source #
(a0 * a1 ... * an)^x = a0^x * a1^x ... * an^x
distributePowerDiv :: Rule Expr Source #
(ab)^y = (a^y b^y)
reciprocal :: Rule Expr Source #
Use with care, will match any fraction!
reciprocalInv :: Rule Expr Source #
a^x = 1/a^(-x)
reciprocalFrac :: Rule Expr Source #
c d*a^(-x)*b^(-y)...p^r... = c*a^x*b^y...d*p^r...
calcPowerRatio :: Rule Expr Source #
a^(xy) => (a^x)^(1y)
simplifyPower :: Rule Expr Source #
all of the above simplification rules
reciprocalVar :: Rule Expr Source #
e/a = e*a^(-1) where a is an variable
reciprocalPower :: Rule Expr Source #
c/a^x = c*a^x^(-1)
factorAsPower :: Rule Expr Source #
n => a^e (with e /= 1)
calcPlainRoot :: Rule Expr Source #
root n x
simpleAddExponents :: Rule Expr Source #
a*x^y * b*x^q = a*b * x^(y+q)
Root rules
power2root :: Rule Expr Source #
Root rules ----------------------------------------------------------------
a^(p/q) = root (a^p) q
root2power :: Rule Expr Source #
root a q = a^(1/q)
Log rules
logarithm :: Rule (Equation Expr) Source #
Logarithmic relation rules -----------------------------------------------
Common rules
myFractionTimes :: Rule Expr Source #
Common rules --------------------------------------------------------------
ab * cd = a*c / b*d (b or d may be one)
pushNegOut :: Rule Expr Source #
(-a)^x = -(a^x)