data class ConstantFunction: UnivariateFunction

Constant function of a value within a domain.

Fields

Name Description
val value: Double

constant's value

val domain: Range<Double>

domain of the constant function

Constructors

<init>

constructor(value: Double, domain: Range<Double>)

Constant function of a value within a domain.

Parameters

Name Description
value: Double

constant's value

domain: Range<Double>

domain of the constant function

Methods

timesValue

infix fun timesValue(other: Double): ConstantFunction

Parameters

Name Description
other: Double

ReturnValue

Name Description
ConstantFunction

CompanionObject

ConstantFunction

data class ConstantFunction: UnivariateFunction

Constant function of a value within a domain.

Fields

Name Description
val ZERO: ConstantFunction