Gitiles
Code Review
Sign In
gerrit.avm99963.com
/
edu
/
lab-termodinamica
/
7ca4571785052f797b3e09561a616064ef7699ca
/
.
/
p7
/
numericalintegration
/
main.m
blob: cb8aa766521e74c4179346dc96c30e57f0f906e0 [
file
] [
log
] [
blame
]
M
=
dlmread
(
'../data/refredant_integration.dat'
);
d
=
@(
t
)
(
1.370e-06
*
t
^
2
+
1.217e-04
*
t
-
2.173e+00
);
x
=
M
(:,
1
);
y
=
M
(:,
2
);
for
i
=
1
:
size
(
y
,
1
)
y
(
i
)
=
y
(
i
)
-
d
(
x
(
i
));
end
trapz
(
x
,
y
)