InversePowerTimesNumberCommutative
com.phasmidsoftware.number.expression.expr.InversePowerTimesNumberCommutative
object InversePowerTimesNumberCommutative extends CommutativeExtractor[InversePower, CanPower[Number]]
Extractor object for commutative operations between an InversePower and a value that can be powered, represented by CanPower[eager.Number].
This object extends CommutativeExtractor, enabling it to automatically handle both (left, right) and (right, left) orderings in commutative binary operations. Specifically, it extracts:
- An
InversePowerfrom the "left" side of the expression, provided the base of the inverse power (n) is greater than 1. - A
CanPower[eager.Number]from the "right" side of the expression.
The unapply method allows pattern matching to operate on pairs of expressions, extracting valid (InversePower, CanPower[eager.Number]) pairs regardless of their position in the tuple.
Attributes
- Graph
-
- Supertypes
- Self type
Members list
In this article