IsEuler

com.phasmidsoftware.number.expression.expr.IsEuler
object IsEuler

The IsEuler object provides functionality to extract an instance of Euler from a given Expression if the expression conforms to a known form of Euler's representation. It enables pattern matching for expressions representing Euler's equation or its variations.

Attributes

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

Members list

Value members

Concrete methods

def unapply(e: Expression): Option[Euler]

Extracts an instance of Euler from a given Expression, if the expression matches a known Euler form, including -1, i, negative Euler values.

Extracts an instance of Euler from a given Expression, if the expression matches a known Euler form, including -1, i, negative Euler values.

Value parameters

e

the expression to be evaluated for extraction

Attributes

Returns

an Option containing the extracted Euler instance if the expression matches; None otherwise