DiFuncBase

com.phasmidsoftware.number.core.misc.DiFuncBase
abstract class DiFuncBase[X](g: X => X, ds: X => Double*) extends DiFunc[X]

Base class for trait DiFunc

Value parameters

ds

a variable number of one-functions

g

function which transforms value (THE function)

Attributes

Graph
Supertypes
trait DiFunc[X]
class Object
trait Matchable
class Any
Known subtypes
object Inverse
object Negative
class Power
class Times
Show all

Members list

Value members

Concrete methods

def df_dx(i: Int): X => Double

Value parameters

i

which variable we want the partial derivative for (0<=i<arity)

Attributes

Returns

the partial derivative of f with respect to the ith variable

Concrete fields

lazy val arity: Int

Attributes

Returns

the number of independent variables in the function

lazy val f: X => X

Attributes

Returns

the function which transforms a value into a different value (THE function)