>> x=24.56987;
>> y=round(x*10^4)/10^4;
>> disp(y);
24.570
>> x=13.2549;
>> y=round(x*10^3)/10^3;
>> disp(y);
13.255
>> x=13.2549;
>> y=round(x*10^2)/10^2;
>> disp(y);
13.250
>> x=2.26;
>> y=round(x);
>> disp(y);
2
>> x=16.9;
>> y=round(x);
>> disp(y);
17
>> x = 5.2;
>> sx = 0.1;
>> y = 3.8;
>> sy = 0.2;
>> z = x + y;
>> sz = sqrt(sx^2 + sy^2);
>> disp(z);
9
>> disp(sz);
0.2236
>> x=7.2;
>> sx=0.5;
>> y=3.6;
>> sy=0.3;
>> z=x-y;
>> sz=sqrt(sx^2+sy^2);
>> disp(z);
3.6000
>> disp(sz);
0.5831
>> A=[0.3333,0.3333;0.3333,0.3333];
>> B=[1;1];
>> x=A\b
warning: matrix singular to machine precision
x =
1.5002
1.5002
>> disp(x)
1.5002
1.5002
limite(derivacion)
>> x=28;h=4;
>> x+h
ans = 32
>> ((x+h)-x)/h
ans = 1
EJERCICIOS DE ERRORES EN EXCEL