Вы находитесь на странице: 1из 4

PRIMERA PRACTICA CALIFICADA DE MTODOS NUMRICOS

Profesor del curso: Ayala Mina, Jorge .G


Alumno: Huanca Arapa, Ronald .M
Cdigo: 20110312A
Enunciado: sumar 1+ 0.00001 en sistema binaro .Para lo cual convertimos cada sumando
a binaro.
Conversin de 1 a sistemas binario:
1=12
Conversin de 0.00001 a sistemas binario:
0.00001
0.00002
0.00004
0.00008
0.00016
0.00032
0.00064
0.00128
0.00256
0.00512
0.01024
0.02048
0.04096
0.08192
0.16384
0.32768
0.65536
0.31072
0.62144
0.24288
0.48576
0.97152
0.94304
0.88608
0.77216
0.54432
0.08864
0.17728
0.35456
0.70912
0.41824

x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x

2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2

=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=

0.00002
0.00004
0.00008
0.00016
0.00032
0.00064
0.00128
0.00256
0.00512
0.01024
0.02048
0.04096
0.08192
0.16384
0.32768
0.65536
1.31072
0.62144
1.24288
0.48576
0.97152
1.94304
1.88608
1.77216
1.54432
1.08864
0.17728
0.35456
0.70912
1.41824
0.83648

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
1
0
0
1
1
1
1
1
0
0
0
1
0

0.83648
0.67296
0.34592
0.69184
0.38368
0.76736
0.53472
0.06944
0.13888
0.27776
0.55552
0.11104
0.22208
0.44416
0.88832
0.77664
0.55328
0.10656
0.21312
0.42624
0.85248
0.70496
0.40992
0.81984
0.63968
0.27936
0.55872
0.11744
0.23488
0.46976
0.93952

x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x

2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2

=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=

1.67296
1.34592
0.69184
1.38368
0.76736
1.53472
1.06944
0.13888
0.27776
0.55552
1.11104
0.22208
0.44416
0.88832
1.77664
1.55328
1.10656
0.21312
0.42624
0.85248
1.70496
1.40992
0.81984
1.63968
1.27936
0.55872
1.11744
0.23488
0.46976
0.93952
1.87904

1
1
0
1
0
1
1
0
0
0
1
0
0
0
1
1
1
0
0
0
1
1
0
1
1
0
1
0
0
0
1

0.87904
0.75808
0.51616
0.03232
0.06464
0.12928
0.25856
0.51712
0.03424
0.06848
0.13696
0.27392
0.54784
0.09568
0.19136
0.38272
0.76544
0.53088
0.06176
0.12352
0.24704
0.49408
0.98816
0.97632
0.95264
0.90528
0.81056
0.62112
0.24224
0.48448
0.96896
0.93792
0.87584
0.75168
0.50336
0.00672
0.01344
0.02688
0.05376
0.10752
0.21504
0.43008
0.86016

x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x

2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2

=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=

1.75808
1.51616
1.03232
0.06464
0.12928
0.25856
0.51712
1.03424
0.06848
0.13696
0.27392
0.54784
1.09568
0.19136
0.38272
0.76544
1.53088
1.06176
0.12352
0.24704
0.49408
0.98816
1.97632
1.95264
1.90528
1.81056
1.62112
1.24224
0.48448
0.96896
1.93792
1.87584
1.75168
1.50336
1.00672
0.01344
0.02688
0.05376
0.10752
0.21504
0.43008
0.86016
1.72032

1
1
1
0
0
0
0
1
0
0
0
0
1
0
0
0
1
1
0
0
0
0
1
1
1
1
1
1
0
0
1
1
1
1
1
0
0
0
0
0
0
0
1

0.72032
0.44064
0.88128
0.76256
0.52512
0.05024
0.10048
0.20096
0.40192
0.80384
0.60768
0.21536
0.43072
0.86144
0.72288
0.44576
0.89152
0.78304
0.56608
0.13216
0.26432
0.52864
0.05728
0.11456
0.22912
0.45824
0.91648
0.83296
0.66592
0.33184
0.66368
0.32736
0.65472
0.30944
0.61888
0.23776
0.47552
0.95104
0.90208
0.80416
0.60832
0.21664
0.43328

x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x
x

2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2

=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=

1.44064
0.88128
1.76256
1.52512
1.05024
0.10048
0.20096
0.40192
0.80384
1.60768
1.21536
0.43072
0.86144
1.72288
1.44576
0.89152
1.78304
1.56608
1.13216
0.26432
0.52864
1.05728
0.11456
0.22912
0.45824
0.91648
1.83296
1.66592
1.33184
0.66368
1.32736
0.65472
1.30944
0.61888
1.23776
0.47552
0.95104
1.90208
1.80416
1.60832
1.21664
0.43328
0.86656

1
0
1
1
1
0
0
0
0
1
1
0
0
1
1
0
1
1
1
0
0
1
0
0
0
0
1
1
1
0
1
0
1
0
1
0
0
1
1
1
1
0
0

0.86656
0.73312
0.46624
0.93248
0.86496
0.72992

x
x
x
x
x
x

2
2
2
2
2
2

=
=
=
=
=
=

1.73312
1.46624
0.93248
1.86496
1.72992
1.45984

1
1
0
1
1
1

0.45984
0.91968
0.83936
0.67872
0.35744
0.71488

x
x
x
x
x
x

2
2
2
2
2
2

=
=
=
=
=
=

0.91968
1.83936
1.67872
1.35744
0.71488
1.42976

0
1
1
1
0
1

0.0000110 =0.00000000000000001010011111000101101011000100011100011011010001111000
01000010001100001111110011111000000011011100001100110111001000011101010100111100
110111011101b2 ; b=1 b=0 .

NORMALZACON
Usando la representacin del punto flotante.
0.1010011111000101101011000100011100011011010001111000010000100011. X 2-16
16 a binario
16

16=10002

PARA 04 bytes (32 bits)


0.1010011111000101101011000100011100011011010001111000010000100011. X 2-10000
Matiza = 0.101001111100010110101100 010001110001101
Bit truncado
1 Bit para el Signo del exponente
0 1 0 1 0 0 0 0 1 0 1 0 0 1 1 1 1 1 0 0 0 1 0 1 1 0 1 0 1 1 0 0
7 Bits para el exponente
1 Bit signo del nmero

24 Bits para la mantisa

Despus del bit truncado no se guarda la informacin, esto dar lugar a otro valor al
momento de volver al nmero decimal.
101001111100010110101100 x 10-16= 1 x 2-16+ 0x 2-17+1 x 2-18+0 x 2-19+0 x 2-20+1 x 2-21+1 x 2-22+1 x
2-23+1 x 2-24+1 x 2-25+0 x 2-26+0 x 2-2+0 x 2-2+1 x 2-30+0 x 2-31+1 x 2-32+1 x 2-33+01x 2-34+0x 2-35+ 1x 236
+0 x 2-37+1 x 2-38+1 x 2-39+0 x 2-40+0 x 2-41
= 0.000001762931..

El programa MATLAB trabaja con 8 byte(64 bits)


64 bits: 1de signo; 11 de exponente y 52 bits de mantisa.
En nuestro problema:
1+0.00001 = 1.00001
1.0000110 =1.00000000000000001010011111000101101011000100011100011011010001111000
01000010001100001111110011111000000011011100001100110111001000011101010100111100
110111011101b2 ; b=1 b=0 .
1.000000000000000010100111110001011010110001000111000 110110100011.. X 2+1
Bit truncado
1 Bit para el Signo del exponente
0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
11 Bits para el exponente

52 Bits para la mantisa

1 Bit signo del nmero


Despus del bit truncado no se guarda la informacin, esto dar lugar a otro valor al
momento de volver al nmero decimal.
Resultado que no da el programa MATLAB despus de haber sumado 1+ 0.00001 es igual
a 1:
1 + 0.00001 = 1

De este resultado se puede colegir que debido al a la limitacin de la memora de 64 bits se


produce errores en el momento de guardar la informacin para despus usarlo en la
siguiente operacin. Este error se genera mediante la perdida de cifras lo cual altera el
resultado final.

Вам также может понравиться