[IoId("00000000-DD90-4191-960D-82D8DA934760")]
public class PolynomialFunction : FunctionWithCaching, IPolynomial
Represents an immutable polynomial equation in the form y = a + bx² + cx³ + ...
Constructors
Properties
Derivative
Gets a function which is the derivative of this function. The returned function may be either analytic or approximate.
Overrides: Function.Derivative
Integral
Gets a function which is the indefinite integral of this function. The returned function may be analytic or approximate. Note that numeric approximation of indefinite integrals is a slow and not particularly high quality process.
Overrides: Function.Integral
Notation
#Gets the notation for this function. Notation is aimed at humans and does not need to return a parseable string.
Overrides: FunctionWithCaching.Notation
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.
AutoCoDomain
Compute the automatic codomain for a given domain.
DomainEstimate
#Return an estimate of the interesting part of a function. Each function may choose how to answer this question individually.
Parameters:
| 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. |
Overrides: Function.DomainEstimate
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.
Integrate
Evaluate the definite integral between two parameters. Unless a function specifically implements an analytic integral, this value will be approximate. Note to implementer: if you provide an analytic integral via the Function.Integral property, that function will be used to compute an analytic result. There is typically no reason to override this method.
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.
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.
Parameters:
| x (double[]) | Value to evaluate. |
Returns: Evaluation results. Array will contain double.NaN entries for failed evaluations.