Anul 3 Semestrul 2
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
function R = trapz_int(f, a, b, n)
|
||||
R = ((b-a)/(2*n)) * (f(a)+f(b)+2*sum(f(a+([1:n-1])*((b-a)/n))));
|
||||
|
||||
end;
|
||||
Reference in New Issue
Block a user