public function UnitsMathematicalOperatorInterface::isolateOperand in Units of Measurement 7.2
Numerically isolate a certain operand of this mathematical expression.
Given result of this mathematical expression, numerically, i.e. dimensionlessly isolate a certain operand of this mathematical expression.
Parameters
\UnitsMathematicalExpression $equal_expression: Result of this mathematical expression
int $operand_to_isolate: What operand of this mathematical expression to isolate. Allowed values are:
- 1: to isolate operand #1
- 2: to isolate operand #2
Return value
UnitsMathematicalExpression Mathematical expression to which the isolated member numerically equals
1 method overrides UnitsMathematicalOperatorInterface::isolateOperand()
- AbstractUnitsMathematicalOperator::isolateOperand in ./
units.module - Numerically isolate a certain operand of this mathematical expression.
File
- ./
units.module, line 1283 - Provide API for managing and converting units of measurement.
Class
- UnitsMathematicalOperatorInterface
- Interface of mathematical operator.
Code
public function isolateOperand(UnitsMathematicalExpression $equal_expression, $operand_to_isolate);