Curve.SlopeAt Method

Definition

Namespace: Numerics.NET.Curves
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.0.0

Overload List

SlopeAt(Double) Gets the slope of the curve at the specified X-coordinate.
SlopeAt(Double[]) Gets the slopes of the curve at the specified X-coordinates.
SlopeAt(ReadOnlySpan<Double>) Gets the slopes of the curve at the specified X-coordinates.
SlopeAt(Vector<Double>) Gets 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.

SlopeAt(Double)

Gets the slope of the curve at the specified X-coordinate.
C#
public virtual double SlopeAt(
	double x
)

Parameters

x  Double
A real number.

Return Value

Double
The 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.
C#
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.
C#
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.
C#
public Vector<double> SlopeAt(
	Vector<double> x
)

Parameters

x  Vector<Double>
A vector of X-coordinates.

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.
C#
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.

See Also