IdentityFunction

Function
[IoId("00000000-84ca-4258-afbc-8229d2878a46")] public sealed class IdentityFunction : Function, IPolynomial
A function which acts as a stand-in for identity mapping.

Constructors

IdentityFunction

#
public IdentityFunction()

IdentityFunction

#
public IdentityFunction(IReader reader)
reader (IReader)

Properties

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 virtual FunctionUi Ui { get; }
Gets a UI object for modifying this function. This property may return null, not all functions must be editable.
inherited fromFunction

Methods

Asymptotes

public virtual Line[] 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.
inherited fromFunction

AutoCoDomain

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

DomainEstimate

public virtual void DomainEstimate(out double x0, out double x1, out double y0, out double y1)
Return an estimate of the interesting part of a function. Each function may choose how to answer this question individually.
inherited fromFunction
x0 (out double)Lowest x coordinate of interest.
x1 (out double)Highest x coordinate of interest.
y0 (out double)Lowest y coordinate of interest.
y1 (out double)Highest y coordinate of interest.

Holes

public virtual Interval[] Holes(double x0, double x1)
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.
inherited fromFunction
x0 (double)Lower limit of query domain.
x1 (double)Upper limit of query domain.

Integrate

#
public override double Integrate(double x0, double x1)
x0 (double)
x1 (double)

Poles

public virtual Pole[] Poles(double x0, double x1)
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.
inherited fromFunction
x0 (double)Lower limit of query domain.
x1 (double)Upper limit of query domain.

Store

public virtual void Store(IWriter writer)
inherited fromFunction
writer (IWriter)
Store

Y

#
public override double Y(double x)
x (double)
Function.Y

YYYY

public double[] YYYY(double[] x)
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.
inherited fromFunction
x (double[])Value to evaluate.
Evaluation results. Array will contain double.NaN entries for failed evaluations.