The Open
D
Programming Language
Learn
Language
Library
Contribute
Blog
lagrange
mir
interpolate
polynomial
Constructs barycentric lagrange interpolant.
Lagrange
!(
T
,
maxDerivative
)
lagrange
(X[] x, T[] y)
@
trusted
@
fmamath
Lagrange
!(
T
,
maxDerivative
)
lagrange
(
uint
maxDerivative
= 0
T
X
)
(
scope
const
X
[]
x
,
scope
const
T
[]
y
)
if
(
maxDerivative
< 16
)
Lagrange
!(
Unqual
!(
Slice
!(
Iterator
,
1
,
kind
).
DeepElement
),
maxDerivative
,
X
)
lagrange
(Slice!(RCI!(immutable X)) x, Slice!(Iterator, 1, kind) y)
Meta
Source
See Implementation
mir
interpolate
polynomial
functions
inversedBarycentricWeights
lagrange
polynomialDerivativeValues
structs
Lagrange
Constructs barycentric lagrange interpolant.