getCubicLagrCoeffs

Returns the Cubic Lagrange coefficients for the supplied positions

  1. float[4] getCubicLagrCoeffs(float x, float[4] x_n)
    @nogc nothrow pure @safe
    float[4]
    getCubicLagrCoeffs
    (
    float x
    ,
    float[4] x_n
    )
  2. float[4] getCubicLagrCoeffs(float x)

Parameters

x float

position ideally between x_n[1] and x_n[2].

x_n float[4]

the supplied positions. All values must be different, otherwise the returned value will be NaN.

Return Value

Type: float[4]

an array with the coefficients.

Meta