[poincare] Add a rule 1^a->1

Change-Id: I550d6639f520d82e37dc5db7234654669249eac2
This commit is contained in:
Émilie Feral
2017-10-02 17:02:41 +02:00
parent 0bc31dc4d5
commit 855b42a710

View File

@@ -2,13 +2,21 @@ DemoRuleset
// 0*a -> 0
Multiplication.a(Integer.b[0]) -> ReplaceWithTransform(a,b);
// 1*a -> a
//Multiplication.a(Integer.b[1]) -> RemoveChildTransform(a,b);
// a+0 -> a
//Addition.a(Integer.b[0]) -> RemoveChildTransform(a,b);
// a^1 -> a
Power.a(Any.b,Integer.c[1]) -> ReplaceWithTransform(a,b);
// 1^a -> 1
Power.a(Integer.b[1], Any) -> ReplaceWithTransform(a,b);
//a^0 -> 1
// Remove parenthesis
Parenthesis.a -> RemoveParenthesisTransform(a);