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 [z, t] = divdiff2(x,f,df)
z = repelem(x,2);
lz = length(z);
f2 = repelem(f,2);
t=zeros(lz);
t(:,1)= f2';
t(1:2:lz-1,2) = df';
t(2:2:lz-2,2) = (diff(f)./diff(x))';
for j = 3:lz
t(1:lz-j+1,j) = (t(2:lz-j+2,j-1) - t(1:lz-j+1,j-1))./((z(j:lz)-z(1:lz-j+1))');
endfor
end