You are here

public function AbstractUnitsMathematicalOperator::isLinear in Units of Measurement 7.2

Whether this expression is linearly decomposable.

Return value

bool Whether this expression is linearly decomposable, i.e. its decomposition can be plugged in into another mathematical expression via multiplication without losing sense

Overrides UnitsMathematicalExpression::isLinear

1 method overrides AbstractUnitsMathematicalOperator::isLinear()
UnitsMathematicalOperatorNonLinear::isLinear in ./units.module
Whether this expression is linearly decomposable.

File

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

Class

AbstractUnitsMathematicalOperator
Abstract implementation of "mathematical operator" interface.

Code

public function isLinear() {
  return TRUE;
}