SignFunction
FunctionF<1>FunctionWithCachingFunction[IoId("00000000-e804-481e-a54b-f0f0ce270709")]
public sealed class SignFunction : FunctionF<Function>
The sign of a function.
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
F
public T1 F { get; }
First operand.
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
Ui
Gets a UI object for modifying this function. This property may return null, not all functions must be editable.
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
Overrides: Function.DomainEstimate
EmitIntegral
Override this method to provide an analytic indefinite integral.
Overrides: Function.Holes
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
#The sign of an infinity is still just +1 or -1, so an operand pole shows up here as an ordinary step rather than a pole of its own. Holes are left to the base relay: the sign of an undefined value is still undefined.
Overrides: FunctionF<T1>.Poles
Parameters:
| writer (IWriter) |
Overrides: FunctionWithCaching.Store
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.