function [eAM1 eAM2] = errCalc(dT11, dT12, dT21, dT22)

%Logarithmic mean temperature difference
LM1 = (dT11-dT12)./log(dT11./dT12);
LM2 = (dT21-dT22)./log(dT21./dT22);

%Arithmetic mean temperature difference
AM1 = (dT11+dT12)./2;
AM2 = (dT21+dT22)./2;

%AM error
eAM1 = (AM1-LM1)./LM1*100;
eAM2 = (AM2-LM2)./LM2*100;