- override
Creates a Expression
by dividing this member by the argument. Both
members may need to be hoisted to expressions themselves before this can
occur.
Warning: This operation may throw a ParserException
if the resulting
expression is no longer linear. This is because a non-linear Expression
may not be used to create a constraint. The divisor (i.e. the argument)
must evaluate to a constant.
For example: ((left + right) / cm(2.0) >= mid
declares a midpoint
constraint. Notice that the divisor of the left hand Expression
is a
constant.
Source
@override Expression operator /(EquationMember m) { if (!m.isConstant) { throw new ParserException( 'The divisor was not a constant expression', <EquationMember>[this, m]); } return this._applyMultiplicand(1.0 / m.value); }