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