MonadicOperationFunc

com.phasmidsoftware.number.core.inner.MonadicOperationFunc
case class MonadicOperationFunc(f: Double => Double, dfByDx: Double => Double) extends MonadicOperation

MonadicOperation to apply a generic function to a Number.

Attributes

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

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

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
def productIterator: Iterator[Any]

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

A tuple of monadic functions representing different operations.

A tuple of monadic functions representing different operations.

The tuple contains:

  • A function that always fails with the message "no apply".
  • Another function that always fails with the message "no apply".
  • A lifted version of the function f, wrapped to return a Try for potential failure handling.

Attributes

val fuzz: Option[Int]

An integer constant representing a default fuzz value.

An integer constant representing a default fuzz value.

This value is used in the context of monadic operations to represent a default or fallback fuzziness level.

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.

This is the general formula for a monadic operation. All others derive from this formula.

Attributes