IsHyperbolic

com.phasmidsoftware.number.expression.expr.IsHyperbolic
object IsHyperbolic

An extractor object that checks if a given expression is hyperbolic by matching it against the hyperbolic sine (sinh) or hyperbolic cosine (cosh) functions.

The object provides an unapply method that takes an Expression as input and attempts to extract the inner expression z if the input expression matches the form of a hyperbolic function.

Cases:

  • Matches expressions of the form UniFunction(z, Sinh) or UniFunction(z, Cosh) and returns the inner expression z in a Some if matched.
  • Returns None if the input expression does not match the hyperbolic form.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

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