mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-26 17:20:53 +01:00
[poincare] Add a rule 1^a->1
Change-Id: I550d6639f520d82e37dc5db7234654669249eac2
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user