com.phasmidsoftware.number.expression.expr.SquareRoot
Object SquareRoot provides a mechanism to extract and match square root operations represented as a specific Expression.
Attributes
- Graph
-
- Supertypes
-
class Object
trait Matchable
class Any
- Self type
-
Members list
Extractor method for matching a square root operation represented as an NthRoot with a radicand, index of 2, and a branch.
Extractor method for matching a square root operation represented as an NthRoot with a radicand, index of 2, and a branch.
Value parameters
- expr
-
the Expression to be matched and decomposed.
Attributes
- Returns
-
an Option containing a tuple with the radicand and branch of the square root expression if the input matches; otherwise, None.