SumSymmetricCommutative

com.phasmidsoftware.number.expression.expr.SumSymmetricCommutative

Fully symmetric commutative extractor for Sum expressions. Both positions accept any Expression; the inner match in matchBiFunctionIdentitiesSum applies the specific guards. Used for Pythagorean and related identities where both operands are CompositeExpression and no asymmetric role distinction applies.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Inherited methods

def unapply(pair: (Expression, Expression)): Option[(Expression, Expression)]

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