IsImaginaryExpression

com.phasmidsoftware.number.expression.expr.IsImaginaryExpression

An object that provides pattern matching for determining whether a given Expression represents an imaginary value.

It attempts to evaluate the Expression and checks if it can be identified as an imaginary value through the IsImaginary extractor.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

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

Matches an Expression and attempts to extract an Eager value if it can be determined as imaginary.

Matches an Expression and attempts to extract an Eager value if it can be determined as imaginary.

Value parameters

x

the Expression to be evaluated and checked for being imaginary.

Attributes

Returns

an Option containing the extracted Eager value if the Expression is determined to be imaginary, or None otherwise.