mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-27 17:50:04 +01:00
[poincare] Remove dummy defaultShallowReduce
Decimal and BasedInteger have no children
This commit is contained in:
committed by
Léa Saviot
parent
e4601206be
commit
2d5708c782
@@ -87,11 +87,6 @@ BasedInteger BasedInteger::Builder(const Integer & m, Integer::Base base) {
|
||||
}
|
||||
|
||||
Expression BasedInteger::shallowReduce() {
|
||||
Expression e = Expression::defaultShallowReduce();
|
||||
if (e.isUndefined()) {
|
||||
return e;
|
||||
}
|
||||
// this = e
|
||||
// Turn BasedInteger into Rational
|
||||
Integer numerator = node()->integer();
|
||||
Integer denominator(1);
|
||||
|
||||
@@ -448,11 +448,6 @@ Expression Decimal::setSign(ExpressionNode::Sign s) {
|
||||
}
|
||||
|
||||
Expression Decimal::shallowReduce() {
|
||||
Expression e = Expression::defaultShallowReduce();
|
||||
if (e.isUndefined()) {
|
||||
return e;
|
||||
}
|
||||
// this = e
|
||||
int exp = node()->exponent();
|
||||
Integer numerator = node()->signedMantissa();
|
||||
/* To avoid uselessly big numerator and denominator, we get rid of useless 0s
|
||||
|
||||
Reference in New Issue
Block a user