MonadicOperationNegate
MonadicOperation to negate a Number.
NOTE: not valid on NatLog-scaled values.
Attributes
- Graph
-
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait MonadicOperationtrait Operationclass Objecttrait Matchableclass AnyShow all
- Self type
Members list
Type members
Inherited types
The names of the product elements.
The names of the product elements.
Attributes
- Inherited from:
- Singleton
Attributes
- Inherited from:
- Singleton
The mirrored *-type.
The mirrored *-type.
Attributes
- Inherited from:
- Singleton
Attributes
- Inherited from:
- Singleton
Inherited and Abstract types
The name of the type.
The name of the type.
Attributes
- Inherited from:
- Mirror
Value members
Inherited methods
Creates a new instance of type T with elements taken from product p.
Creates a new instance of type T with elements taken from product p.
Attributes
- Inherited from:
- Singleton
An iterator over the names of all the elements of this product.
An iterator over the names of all the elements of this product.
Attributes
- Inherited from:
- Product
An iterator over all the elements of this product.
An iterator over all the elements of this product.
Attributes
- Returns
-
in the default implementation, an
Iterator[Any] - Inherited from:
- Product
Concrete fields
Contains monadic functions for negating numerical values of different types.
Contains monadic functions for negating numerical values of different types.
The functions value is a tuple composed of three partially lifted functions:
- A function for negating integers, with potential exceptions handled via
Try. - A function for negating rational numbers, adhering to the Numeric type class's
negateoperation. - A function for negating doubles, also using the
negateoperation from the Numeric type class.
Each of the included functions uses the tryF helper to lift the respective negation operations into functions that safely handle any potential runtime errors by encapsulating the result in a Try.
Attributes
Relative precision, as used by Fuzziness.createFuzz.
Relative precision, as used by Fuzziness.createFuzz.
Attributes
Function to yield the relative fuzz of the output Number, given the relative fuzz of the input Number.
Function to yield the relative fuzz of the output Number, given the relative fuzz of the input Number.