Piecewise Linear Curve.Slope At Method
Definition
Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0
Overload List
| Slope | Gets the slopes of the curve at the specified X-coordinates. |
| Slope | Gets the slope of the curve at the specified X-coordinate. |
| Slope | Gets the slopes of the curve at the specified X-coordinates. |
| Slope | Gets the slopes of the curve at the specified X-coordinates. |
| Slope | Gets the slopes of the curve at the specified X-coordinates. |
SlopeAt(Double)
Gets the slope of the curve at the specified
X-coordinate.
public override double SlopeAt(
double x
)Parameters
- x Double
- A real number.
Return Value
DoubleThe slope of the curve at the specified X-coordinate.
Remarks
For most values of x, this method returns the slope on the line segment on the interval that contains x. If x is less than the lower bound of the first interval, the value returned is the slope of the line segment on the first interval. If x is greater than the upper bound of the last interval, the value returned is the slope of the line segment on the last interval. If x is equal to the boundary of an interval, and the line segments on either side of the point have different slopes, the result is NaN.