mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[poincare/unit_convert] Fix UnitConvert::shallowReduce
This commit is contained in:
@@ -453,14 +453,6 @@ int Expression::getPolynomialReducedCoefficients(const char * symbolName, Expres
|
||||
return degree;
|
||||
}
|
||||
|
||||
bool Expression::isUnitsOnly(Context * context) const {
|
||||
if (type() == ExpressionNode::Type::Unit) {
|
||||
return true;
|
||||
}
|
||||
Expression thisBeautified = clone().reduce(ExpressionNode::ReductionContext(context, Preferences::ComplexFormat::Real, Preferences::AngleUnit::Degree, ExpressionNode::ReductionTarget::SystemForApproximation, ExpressionNode::SymbolicComputation::ReplaceAllSymbolsWithUndefinedAndDoNotReplaceUnits)); // The values do not really matter except for the symbolicComputation
|
||||
return thisBeautified.reducedExpressionIsUnitsOnly();
|
||||
}
|
||||
|
||||
/* Complex */
|
||||
|
||||
bool Expression::EncounteredComplex() {
|
||||
|
||||
Reference in New Issue
Block a user