InversePowerTimesNumberCommutative

com.phasmidsoftware.number.expression.expr.InversePowerTimesNumberCommutative

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 InversePower from 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
class Object
trait Matchable
class Any
Self type

Members list

Value members

Inherited methods

Unapply method that tries both orderings on a tuple. First tries (extractLeft(left), extractRight(right)), then tries (extractLeft(right), extractRight(left)).

Unapply method that tries both orderings on a tuple. First tries (extractLeft(left), extractRight(right)), then tries (extractLeft(right), extractRight(left)).

Attributes

Inherited from:
CommutativeExtractor