From bd302bb67bdca1f54cff4e32ec484dfc0ab299f1 Mon Sep 17 00:00:00 2001 From: Gabriel Ozouf Date: Mon, 7 Dec 2020 14:41:38 +0100 Subject: [PATCH] [poincare/unreal] Type in derivate method Unreal's derivate method returns true, to signify that it is unchanged by the derivation operation. This implementation mostly exists for documentation, as an Unreal derivand will be handled by the defaultShallowReduce method. --- poincare/include/poincare/unreal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poincare/include/poincare/unreal.h b/poincare/include/poincare/unreal.h index d74d253b1..d53facec4 100644 --- a/poincare/include/poincare/unreal.h +++ b/poincare/include/poincare/unreal.h @@ -29,7 +29,7 @@ public: /* Derivation * Unlike Numbers that derivate to 0, Unreal derivates to Unreal. */ - bool derivate(ReductionContext reductionContext, Expression symbol, Expression symbolValue) override { return false; } + bool derivate(ReductionContext reductionContext, Expression symbol, Expression symbolValue) override { return true; } // Layout Layout createLayout(Preferences::PrintFloatMode floatDisplayMode, int numberOfSignificantDigits) const override;