Parity

com.phasmidsoftware.number.expression.expr.Parity
enum Parity

Represents the parity of a number.

Parity can either be:

  • Odd: Indicates the given ExpressionMonoFunction is odd.
  • Even: Indicates the given ExpressionMonoFunction is even.
  • Neither: Indicates the given ExpressionMonoFunction does not have a defined parity, such as in the case of certain non-integral or undefined inputs.

Attributes

Graph
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Type members

Enum entries

case Even extends Parity
case Neither extends Parity
case Odd extends Parity