NthRoot

com.phasmidsoftware.number.expression.expr.NthRoot
object NthRoot

An object that provides utilities for working with nth root expressions. Specifically, it allows for the deconstruction and extraction of components from expressions that match specific root-related patterns.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
NthRoot.type

Members list

Value members

Concrete methods

def unapply(expr: Expression): Option[(Eager, Int, Int)]

Extracts components of an expression that matches specific root-related patterns.

Extracts components of an expression that matches specific root-related patterns.

Value parameters

expr

The expression to be examined for matches.

Attributes

Returns

An optional tuple containing components of the matched expression: - The Eager operand of the root expression. - The integer degree of the root. - The integer branch adjustment factor. Returns None if the expression does not match the expected patterns.