%% Accuracy in Double Precision
% Display the distance from 1.0 to the next largest double-precision number.

d = eps

% eps is equivalent to eps(1.0) and eps('double').
%
% Compute log2(eps).

d = log2(eps)

% In base 2, eps is equal to 2^-52.
%
% Find the distance from 10.0 to the next largest double-precision number.

d = eps(10.0)

% Copyright 2015 The MathWorks, Inc.