The Lagrange polynomial:

L(x) = k yi gi(x)
Σ
i = 1

Basis polynomials:

gi(x) = k
x - xj
xi - xj
Π
j = 1, j ≠ i

Linear member of the sum:

x - xj = x - xj , where cij = xi - xj
xi - xj cij cij

If you have found a bug, please report it at the Codeberg project page.

If you have a suggestion or a question, please write Oleksandr Kaleniuk, Ph. D., Senior lecturer at DTE / IATE / ISKPI.