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 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. |
| 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 virtual double SlopeAt(
double x
)Parameters
- x Double
- A real number.
Return Value
DoubleThe slope of the curve at the specified X-coordinate.
Remarks
This method evaluates the derivative of the curve at the point x. By default, the derivative is approximated numerically using central differences.
SlopeAt(Double[])
Gets the slopes of the curve at the specified X-coordinates.
public double[] SlopeAt(
double[] x
)Parameters
- x Double[]
- An array of X-coordinates.
Return Value
Double[]An array containing the slopes of the curve at the specified X-coordinates.
SlopeAt(ReadOnlySpan<Double>)
Gets the slopes of the curve at the specified X-coordinates.
public double[] SlopeAt(
ReadOnlySpan<double> x
)Parameters
- x ReadOnlySpan<Double>
- A read-only span of X-coordinates.
Return Value
Double[]An array containing the slopes of the curve at the specified X-coordinates.
SlopeAt(Vector<Double>)
Gets the slopes of the curve at the specified X-coordinates.
public Vector<double> SlopeAt(
Vector<double> x
)Parameters
Return Value
Vector<Double>A vector containing the slopes of the curve at the specified X-coordinates.
SlopeAt(ReadOnlySpan<Double>, Span<Double>)
Gets the slopes of the curve at the specified X-coordinates.
public virtual void SlopeAt(
ReadOnlySpan<double> x,
Span<double> y
)Parameters
- x ReadOnlySpan<Double>
- A read-only span of X-coordinates.
- y Span<Double>
- A span to receive the slopes of the curve at the specified X-coordinates.
Remarks
This method evaluates the slope at each X-coordinate in x and stores the result in the corresponding position in y.