[poincare] Add rule to reduce fraction

Change-Id: I2509f61e44962e0618b6447c982d869ac3f4efb2
This commit is contained in:
Émilie Feral
2017-09-27 16:45:40 +02:00
parent 97bcac3fce
commit 308c48daf8
2 changed files with 4 additions and 0 deletions

View File

@@ -23,3 +23,6 @@ Multiplication.a(Integer.b,Integer.c) -> IntegerMultiplicationTransform(a,b,c);
// (b^c)^d -> b^(c*d)
//Power.a(Power(b,c),d) -> PowerPowerTransform(a,b,c,d)
// int*int^-1 -> int.a*int.b^-1 with gcd(a,b) = 1
Multiplication.a(Power.c(Integer.d, Integer[-1]), Integer.b) -> IntegerFractionReductionTransform(a,b,c,d);

View File

@@ -3,6 +3,7 @@
#include "rule.h"
#include "selector/type_selector.h"
#include "selector/type_and_identifier_selector.h"
namespace Poincare {
namespace Simplification {