a = taylorwin(171,8,-60);
b = taylorwinC(171,8,-60);
for in = 1:171
if (a(in) ~= b(in))
err = ( ( b(in) - a(in)) / a(in) ) * 100;
fprintf('%s two functions is %e%% %s%d\n'...
, 'The error percentage of the', err,'at index: ', in)
end
end
% The error percentage of the two functions is -1.119385e-13% at index: 18
% The error percentage of the two functions is -7.527152e-14% at index: 23
% The error percentage of the two functions is -8.027684e-14% at index: 28
% The error percentage of the two functions is -6.684443e-14% at index: 31
% The error percentage of the two functions is -1.987900e-14% at index: 33
% The error percentage of the two functions is -7.527806e-14% at index: 34
% The error percentage of the two functions is -3.568556e-14% at index: 35
% The error percentage of the two functions is -3.388238e-14% at index: 36
% The error percentage of the two functions is -3.067407e-14% at index: 38
% The error percentage of the two functions is -4.386877e-14% at index: 39
% The error percentage of the two functions is 2.554963e-14% at index: 42
% The error percentage of the two functions is -1.224350e-14% at index: 43
% The error percentage of the two functions is 3.386336e-14% at index: 45
% The error percentage of the two functions is -1.761621e-14% at index: 52
% The error percentage of the two functions is -1.413965e-14% at index: 60
% The error percentage of the two functions is -1.351732e-14% at index: 62
% The error percentage of the two functions is -2.257262e-14% at index: 73
% The error percentage of the two functions is -2.257262e-14% at index: 99
% The error percentage of the two functions is -1.351732e-14% at index: 110
% The error percentage of the two functions is -1.413965e-14% at index: 112
% The error percentage of the two functions is -1.761621e-14% at index: 120
% The error percentage of the two functions is 3.386336e-14% at index: 127
% The error percentage of the two functions is -1.224350e-14% at index: 129
% The error percentage of the two functions is 2.554963e-14% at index: 130
% The error percentage of the two functions is -4.386877e-14% at index: 133
% The error percentage of the two functions is -3.067407e-14% at index: 134
% The error percentage of the two functions is -3.388238e-14% at index: 136
% The error percentage of the two functions is -3.568556e-14% at index: 137
% The error percentage of the two functions is -7.527806e-14% at index: 138
% The error percentage of the two functions is -1.987900e-14% at index: 139
% The error percentage of the two functions is -6.684443e-14% at index: 141
% The error percentage of the two functions is -8.027684e-14% at index: 144
% The error percentage of the two functions is -7.527152e-14% at index: 149
% The error percentage of the two functions is -1.119385e-13% at index: 154
%Matlab version
% version
%
%ans =
%
%8.2.0.701 (R2013b)