MonadicOperation

com.phasmidsoftware.number.core.inner.MonadicOperation
sealed trait MonadicOperation extends Operation

Definitions of MonadicOperations. This module relates primarily to operations on Value.

Attributes

Graph
Supertypes
trait Operation
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract fields

Method to yield a set of functions which can be applied to Int, Rational, or Double values for this MonadicOperation.

Method to yield a set of functions which can be applied to Int, Rational, or Double values for this MonadicOperation.

Attributes

Returns

a set of three functions: Int=>Try[Int], Rational=>Try[Rational], Double=>Try[Double].

val fuzz: Option[Int]

Relative precision, as used by Fuzziness.createFuzz. If None, then this operation does not introduce any precision loss.

Relative precision, as used by Fuzziness.createFuzz. If None, then this operation does not introduce any precision loss.

Attributes

val relativeFuzz: Double => Double

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.

The general formula for a monadic operation is: x * dfByDx(x) / f(x)

Attributes