mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[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:
committed by
EmilieNumworks
parent
7ae03975cc
commit
bd302bb67b
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user