IsSquareRoot

com.phasmidsoftware.number.algebra.eager.IsSquareRoot
object IsSquareRoot

A utility object for pattern matching operations involving positive square roots. The main purpose of this object is to identify whether a given number or expression can be represented as the square root of another number.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def unapply(x: Eager): Option[Number]

Extractor method used to determine if the given Eager instance can be decomposed into a positive square root of a number.

Extractor method used to determine if the given Eager instance can be decomposed into a positive square root of a number.

Value parameters

x

the Eager instance to be analyzed

Attributes

Returns

an Option containing the square root as a Number if x represents a positive square root of a number; None otherwise