Anul 3 Semestrul 2

This commit is contained in:
2025-07-03 20:56:38 +03:00
parent 184f3bd92e
commit 3b7fb85767
269 changed files with 20955 additions and 0 deletions
@@ -0,0 +1,13 @@
function Lnf = lagrange_classic(nodes,f_nodes,x)
n = length(nodes);
m = length(x);
Lnf = zeros(size(x));
l = zeros(size(nodes));
for i = 1:m
for j = 1:n
l(j) =(prod( x(i) - nodes([1:j-1,j+1:n])))/(prod( nodes(j) - nodes([1:j-1,j+1:n])));
endfor
Lnf(i) = l*f_nodes';
endfor
end;