function Example_rounding_error

%Example_romding_error.m
%loss of significant digits
 

format long g
n=10.^[1:10];
x=n./(n+1);
y=(n-1)./n;
z1=x-y;
z2=1./(n.*(n+1));
[z1',z2']

