mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-27 01:29:58 +01:00
[poincare] Implement two rules using ReplaceWithTransform
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
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);
|
||||
|
||||
// Remove parenthesis
|
||||
Parenthesis.a -> RemoveParenthesisTransform(a);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user