Negatable

com.phasmidsoftware.number.algebra.core.Negatable
trait Negatable[T]

Represents an entity that can be negated, producing a new instance that is considered to be the logical or mathematical negation of the current instance. This trait is designed to work with types such as Structure that have well-defined negation semantics.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Solution
trait Algebraic
class Complex
trait Structure
trait Functional
trait Radians
class Angle
trait Transformed
class Exponential
class InversePower
trait Scalar
object NoScalar
trait Number
trait ExactNumber
class WholeNumber
class Real
Show all

Members list

Value members

Abstract methods

def negate: T

Returns a new instance of T that is the negation of the current instance. CONSIDER sorting out the use of CanNegate so that we can extend that for Structure.

Returns a new instance of T that is the negation of the current instance. CONSIDER sorting out the use of CanNegate so that we can extend that for Structure.

Attributes

Returns

a Structure representing the negation of this instance