[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.
This commit is contained in:
Gabriel Ozouf
2020-12-07 14:41:38 +01:00
committed by EmilieNumworks
parent 7ae03975cc
commit bd302bb67b

View File

@@ -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;