[poincare] Handle division by 0 when combining powers

Change-Id: I108ba8131ef2f8d3d210a769322a815121311f6b
This commit is contained in:
Hugo Saint-Vignes
2020-10-20 12:03:09 +02:00
committed by Émilie Feral
parent aba09e1a1f
commit 0d883bfb19
2 changed files with 52 additions and 1 deletions

View File

@@ -107,6 +107,7 @@ private:
static bool HaveSameNonNumeralFactors(const Expression & e1, const Expression & e2);
static bool TermsHaveIdenticalBase(const Expression & e1, const Expression & e2);
static bool TermsHaveIdenticalExponent(const Expression & e1, const Expression & e2);
static bool TermsCanSafelyCombineExponents(const Expression & e1, const Expression & e2, ExpressionNode::ReductionContext reductionContext);
static bool TermHasNumeralBase(const Expression & e);
static bool TermHasNumeralExponent(const Expression & e);
static const Expression CreateExponent(Expression e);