Sprawozdanie 3

Download as odt, pdf, or txt
Download as odt, pdf, or txt
You are on page 1of 2

Zadanie.

-45(10) = | -45(10) | = 45(10) = 00101101(2)


NOT= 11010010(2)

11010010
+
00000001
________________

11010011

1*(-27)+1*26+0*25+1*24+0*23+0*22+1*21+1*20 = -128+64+16+2+1 = -45

Zadanie.2

a)

-39(10) = | -39(10) | = 39(10) = 00100111(2)


NOT= 11011000(2)
11011000
+
00000001
________________

11011001

1*(-27)+1*26+0*25+1*24+1*23+0*22+0*21+1*20 = -128+64+16+8+1 = -39

b)

-85(10) = | -85(10) | = 85(10) = 01010101(2)


NOT=10101010(2)

10101010
+
00000001
________________

10101011

1*(-27)+0*26+1*25+0*24+1*23+0*22+1*21+1*20 = -128+32+8+2+1 = -85

c)
-110(10) = | -110(10) | = 110(10) = 01101110(2)

NOT= 10010001(2)
10010001
+
00000001
________________

10010010

1*(-27)+0*26+0*25+1*24+0*23+0*22+1*21+0*20 = -128+16+2 = -110


Zadanie.3

f(a,b,c,d) =abc(d+d)+bcd(a+a)+abd(c+c) = abcd+abcd+abcd+abcd+abcd+abcd

a b c d f
0 0 0 0 0 0
1 0 0 0 1 0
2 0 0 1 0 0
3 0 0 1 1 0
4 0 1 0 0 1
5 0 1 0 1 1
6 0 1 1 0 0
7 0 1 1 1 1
8 1 0 0 0 0
9 1 0 0 1 0
10 1 0 1 0 1
11 1 0 1 1 1
12 1 1 0 0 1
13 1 1 0 1 0
14 1 1 1 0 0
15 1 1 1 1 0

f(a,b,c,d)= Σ (4,5,7,10,11,12) = m4 + m5 + m7 + m10 + m11 + m12=abcd+abcd+abcd+abcd+abcd+abcd

f(a,b,c,d)= Π(0,1,2,3,6,8,9,13,14,15) = M0 + M1 + M2 + M3 + M6 + M8 + M9 + M13 + M14+ M15 =


(a+b+c+d)(a+b+c+d)(a+b+c+d)(a+b+c+d)(a+b+c+d)(a+b+c+d)(a+b+c+d)(a+b+c+d)(a+b+c+d)
(a+b+c+d)

4.Zadanie

f(x,y,z)=xy(z+z) + xz(y+y) = xyz+xyz+xyz+xyz

x y z f
0 0 0 0 0
1 0 0 1 1
2 0 1 0 0
3 0 1 1 1
4 1 0 0 0
5 1 0 1 0
6 1 1 0 1
7 1 1 1 1
f(x,y,z) = Σ (1,3,6,7) = m1 + m3 + m6 + m7 = xyz + xyz + xyz + xyz
f(x,y,z) = Π(0,2,4,5) = M0 + M2 + M4 + M5 = (x+y+z)(x+y+z)(x+y+z)(x+y+z)

You might also like