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)
Lagrange
!(
Unqual
!(
Slice
!(
Iterator
,
1
,
kind
).
DeepElement
),
maxDerivative
,
X
)
lagrange
(Slice!(RCI!(immutable X)) x, Slice!(Iterator, 1, kind) y)
@
trusted
@
fmamath
Lagrange
!(
Unqual
!(
Slice
!(
Iterator
, 1,
kind
).
DeepElement
),
maxDerivative
,
X
)
lagrange
(
uint
maxDerivative
= 0
X
Iterator
SliceKind
kind
)
(
Slice
!(
RCI
!(immutable
X
))
x
,
Slice
!(
Iterator
, 1,
kind
)
y
)
if
(
maxDerivative
< 16
)
Meta
Source
See Implementation
mir
interpolate
polynomial
functions
inversedBarycentricWeights
lagrange
polynomialDerivativeValues
structs
Lagrange
Constructs barycentric lagrange interpolant.