Home > Extreme Optimization Mathematics Library for .NET > Reference > Extreme.Mathematics.Curves Namespace


Extreme Optimization Mathematics Library for .NET

Constant Class

Represents a curve with a constant Y-value.

For a list of all members of this type, see Constant Members.

System.Object
   Curve
      LinearCombination
         PolynomialBase
            Polynomial
               Constant

[Visual Basic]
NotInheritable Public Class Constant
Inherits Polynomial
[C#]
public sealed class Constant : Polynomial

Remarks

Use the Constant class to represent a Curve with a constant Y-value. It inherits from Curve and provides specialized implementation for most methods.

A Constant curve has one parameter: the Y-value.

The ValueAt method returns the constant value of the curve. SlopeAt always returns zero. Integral evaluates the definite integral over a specified interval.

A Constant curve is returned by the GetDerivative method of the Line class.

Requirements

Namespace: Extreme.Mathematics.Curves

Assembly: Extreme.Mathematics (in Extreme.Mathematics.dll)

See Also

Constant Members | Extreme.Mathematics.Curves Namespace