You are here

public function AbstractUnitsMathematicalOperator::decompose in Units of Measurement 7.2

Decompose (simplify) this mathematical expression.

Return value

UnitsMathematicalExpression Decomposed (simplified) version of this mathematical expression

Overrides UnitsMathematicalExpression::decompose

1 method overrides AbstractUnitsMathematicalOperator::decompose()
UnitsMathematicalOperatorNonLinear::decompose in ./units.module
Decompose (simplify) this mathematical expression.

File

./units.module, line 1419
Provide API for managing and converting units of measurement.

Class

AbstractUnitsMathematicalOperator
Abstract implementation of "mathematical operator" interface.

Code

public function decompose() {
  return units_mathematical_expression_operator_construct($this->operator, $this
    ->operand1()
    ->decompose(), $this
    ->operand2()
    ->decompose());
}