ConstantFunction

Function
[IoId("00000000-B965-4EEC-BBC5-B4E9575ED168")] public class ConstantFunction : Function, IPolynomial
Represents a constant value function.

Constructors

ConstantFunction

#
public ConstantFunction()

ConstantFunction

#
public ConstantFunction(
constant
)

ConstantFunction

#
public ConstantFunction(
reader
)

Properties

Constant

#
public double Constant { get; }

Derivative

#
public override Function Derivative { get; }
Explicit

IPolynomial.Coefficients

#
double[] IPolynomial.Coefficients
Coefficients

Integral

#
public override Function Integral { get; }

Nomen

#
public override Nomen Nomen { get; }
Function.Nomen

Notation

#
public override string Notation { get; }

Ui

#
public override FunctionUi Ui { get; }
Function.Ui

Methods

Asymptotes

Returns an array of *all* the non-vertical asymptotes for this function. This property may return both null and empty arrays, implying no asymptotes. Due to the nature of non-vertical asymptotes, there can only be a finite amount of them.
public virtual Line[] Asymptotes()
inherited fromFunction

AutoCoDomain

Compute the automatic codomain for a given domain.
protected void AutoCoDomain(
x0,
Domain start.
x1,
Domain end.
out double
y0,
Lowest value in codomain.
out double
y1,
Highest value in codomain.
samples = 100
Samples.
)
inherited fromFunction

DomainEstimate

#
public override void DomainEstimate(
out double
x0,
out double
x1,
out double
y0,
out double
y1
)

Holes

Returns a collection of domains for which this function is not defined. This method may return null or an empty array, implying no undefined domains. This method may also return domains outside of the specified interval.
public virtual Interval[] Holes(
x0,
Lower limit of query domain.
x1
Upper limit of query domain.
)
inherited fromFunction

Integrate

#
public override double Integrate()

Poles

Returns an array of all the poles (i.e. vertical asymptotes) within a domain. This method may return both null and empty arrays, implying no poles. Furthermore this method may choose to return poles which fall outside of the given domain.
public virtual Pole[] Poles(
x0,
Lower limit of query domain.
x1
Upper limit of query domain.
)
inherited fromFunction

Store

#
public override void Store(
writer
)
Function.Store

Y

#
public override double Y()
Function.Y

YYYY

Evaluate a large amount of values. Functions may choose to use multiple threads to perform this calculation. This method should not throw, instead every failed evaluation will be represented by a NaN value.
public double[] YYYY(
x
Value to evaluate.
)
inherited fromFunction
Evaluation results. Array will contain double.NaN entries for failed evaluations.