mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[poincare] Multiplication::shallowBeautify: don't bother to choose best
unit for UnitConversion::Classic
This commit is contained in:
@@ -364,7 +364,7 @@ Expression Multiplication::shallowBeautify(ExpressionNode::ReductionContext redu
|
||||
|
||||
if (!units.isUninitialized()) {
|
||||
ExpressionNode::UnitConversion unitConversionMode = reductionContext.unitConversion();
|
||||
if (unitConversionMode == ExpressionNode::UnitConversion::Default || unitConversionMode == ExpressionNode::UnitConversion::Classic) {
|
||||
if (unitConversionMode == ExpressionNode::UnitConversion::Default) {
|
||||
/* Step 2a: Recognize derived units
|
||||
* - Look up in the table of derived units, the one which itself or its inverse simplifies 'units' the most.
|
||||
* - If an entry is found, simplify 'units' and add the corresponding unit or its inverse in 'unitsAccu'.
|
||||
|
||||
Reference in New Issue
Block a user