Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Input: (2*x)+cos(x)
a=0
b=2
Output:
sin(x) + x 2
10
0
0 0.5 1 1.5 2 2.5 3
x
CODIGO
%REGLA DE EL TRAPECIO
clc;
grid ;
hold on;
ezplot(fun);
ezplot(integ);
REGLA DEL TRAPECIO COMPUESTO:
Input: (2*x)+cos(x)
a=0
b=2
n=4
Output:
CODIGO
clc;
for i=1:n-1
er=0; %e se inicializa en 0
for i=0:n-1
hold on;
ezplot(fun);
ezplot(der);