Thu Apr 18 14:07:46 2024
EVENTS
 FREE
SOFTWARE
INSTITUTE

POLITICS
JOBS
MEMBERS'
CORNER

MAILING
LIST

NYLXS Mailing Lists and Archives
NYLXS Members have a lot to say and share but we don't keep many secrets. Join the Hangout Mailing List and say your peice.

DATE 2014-10-01

HANGOUT

2024-04-18 | 2024-03-18 | 2024-02-18 | 2024-01-18 | 2023-12-18 | 2023-11-18 | 2023-10-18 | 2023-09-18 | 2023-08-18 | 2023-07-18 | 2023-06-18 | 2023-05-18 | 2023-04-18 | 2023-03-18 | 2023-02-18 | 2023-01-18 | 2022-12-18 | 2022-11-18 | 2022-10-18 | 2022-09-18 | 2022-08-18 | 2022-07-18 | 2022-06-18 | 2022-05-18 | 2022-04-18 | 2022-03-18 | 2022-02-18 | 2022-01-18 | 2021-12-18 | 2021-11-18 | 2021-10-18 | 2021-09-18 | 2021-08-18 | 2021-07-18 | 2021-06-18 | 2021-05-18 | 2021-04-18 | 2021-03-18 | 2021-02-18 | 2021-01-18 | 2020-12-18 | 2020-11-18 | 2020-10-18 | 2020-09-18 | 2020-08-18 | 2020-07-18 | 2020-06-18 | 2020-05-18 | 2020-04-18 | 2020-03-18 | 2020-02-18 | 2020-01-18 | 2019-12-18 | 2019-11-18 | 2019-10-18 | 2019-09-18 | 2019-08-18 | 2019-07-18 | 2019-06-18 | 2019-05-18 | 2019-04-18 | 2019-03-18 | 2019-02-18 | 2019-01-18 | 2018-12-18 | 2018-11-18 | 2018-10-18 | 2018-09-18 | 2018-08-18 | 2018-07-18 | 2018-06-18 | 2018-05-18 | 2018-04-18 | 2018-03-18 | 2018-02-18 | 2018-01-18 | 2017-12-18 | 2017-11-18 | 2017-10-18 | 2017-09-18 | 2017-08-18 | 2017-07-18 | 2017-06-18 | 2017-05-18 | 2017-04-18 | 2017-03-18 | 2017-02-18 | 2017-01-18 | 2016-12-18 | 2016-11-18 | 2016-10-18 | 2016-09-18 | 2016-08-18 | 2016-07-18 | 2016-06-18 | 2016-05-18 | 2016-04-18 | 2016-03-18 | 2016-02-18 | 2016-01-18 | 2015-12-18 | 2015-11-18 | 2015-10-18 | 2015-09-18 | 2015-08-18 | 2015-07-18 | 2015-06-18 | 2015-05-18 | 2015-04-18 | 2015-03-18 | 2015-02-18 | 2015-01-18 | 2014-12-18 | 2014-11-18 | 2014-10-18 | 2014-09-18 | 2014-08-18 | 2014-07-18 | 2014-06-18 | 2014-05-18 | 2014-04-18 | 2014-03-18 | 2014-02-18 | 2014-01-18 | 2013-12-18 | 2013-11-18 | 2013-10-18 | 2013-09-18 | 2013-08-18 | 2013-07-18 | 2013-06-18 | 2013-05-18 | 2013-04-18 | 2013-03-18 | 2013-02-18 | 2013-01-18 | 2012-12-18 | 2012-11-18 | 2012-10-18 | 2012-09-18 | 2012-08-18 | 2012-07-18 | 2012-06-18 | 2012-05-18 | 2012-04-18 | 2012-03-18 | 2012-02-18 | 2012-01-18 | 2011-12-18 | 2011-11-18 | 2011-10-18 | 2011-09-18 | 2011-08-18 | 2011-07-18 | 2011-06-18 | 2011-05-18 | 2011-04-18 | 2011-03-18 | 2011-02-18 | 2011-01-18 | 2010-12-18 | 2010-11-18 | 2010-10-18 | 2010-09-18 | 2010-08-18 | 2010-07-18 | 2010-06-18 | 2010-05-18 | 2010-04-18 | 2010-03-18 | 2010-02-18 | 2010-01-18 | 2009-12-18 | 2009-11-18 | 2009-10-18 | 2009-09-18 | 2009-08-18 | 2009-07-18 | 2009-06-18 | 2009-05-18 | 2009-04-18 | 2009-03-18 | 2009-02-18 | 2009-01-18 | 2008-12-18 | 2008-11-18 | 2008-10-18 | 2008-09-18 | 2008-08-18 | 2008-07-18 | 2008-06-18 | 2008-05-18 | 2008-04-18 | 2008-03-18 | 2008-02-18 | 2008-01-18 | 2007-12-18 | 2007-11-18 | 2007-10-18 | 2007-09-18 | 2007-08-18 | 2007-07-18 | 2007-06-18 | 2007-05-18 | 2007-04-18 | 2007-03-18 | 2007-02-18 | 2007-01-18 | 2006-12-18 | 2006-11-18 | 2006-10-18 | 2006-09-18 | 2006-08-18 | 2006-07-18 | 2006-06-18 | 2006-05-18 | 2006-04-18 | 2006-03-18 | 2006-02-18 | 2006-01-18 | 2005-12-18 | 2005-11-18 | 2005-10-18 | 2005-09-18 | 2005-08-18 | 2005-07-18 | 2005-06-18 | 2005-05-18 | 2005-04-18 | 2005-03-18 | 2005-02-18 | 2005-01-18 | 2004-12-18 | 2004-11-18 | 2004-10-18 | 2004-09-18 | 2004-08-18 | 2004-07-18 | 2004-06-18 | 2004-05-18 | 2004-04-18 | 2004-03-18 | 2004-02-18 | 2004-01-18 | 2003-12-18 | 2003-11-18 | 2003-10-18 | 2003-09-18 | 2003-08-18 | 2003-07-18 | 2003-06-18 | 2003-05-18 | 2003-04-18 | 2003-03-18 | 2003-02-18 | 2003-01-18 | 2002-12-18 | 2002-11-18 | 2002-10-18 | 2002-09-18 | 2002-08-18 | 2002-07-18 | 2002-06-18 | 2002-05-18 | 2002-04-18 | 2002-03-18 | 2002-02-18 | 2002-01-18 | 2001-12-18 | 2001-11-18 | 2001-10-18 | 2001-09-18 | 2001-08-18 | 2001-07-18 | 2001-06-18 | 2001-05-18 | 2001-04-18 | 2001-03-18 | 2001-02-18 | 2001-01-18 | 2000-12-18 | 2000-11-18 | 2000-10-18 | 2000-09-18 | 2000-08-18 | 2000-07-18 | 2000-06-18 | 2000-05-18 | 2000-04-18 | 2000-03-18 | 2000-02-18 | 2000-01-18 | 1999-12-18

Key: Value:

Key: Value:

MESSAGE
DATE 2014-10-06
FROM mrbrklyn@panix.com
SUBJECT Subject: [NYLXS - HANGOUT] HW 1


Q 1 :

Express the decimal number 101 in base 2 to 9 and hexadecimal
1100101
122
65

Q 2 :

Perform the following binary multiplication of two binary numbers: 10011011 and 11001101

Yo have to be kidding me:
10011011
11001101
________
10011011
000000000
1001101100
10011011000
000000000000
0000000000000
10011011000000
100110110000000
___________________
111110000011111



Q 3 :
Perform the following additions of the 3-digit binary numbers, knowing that supplementation 2 is used to represent negative numbers:

000 000 101 111 101 010

001 111 101 110 110 011
--- --- --- --- --- ---
001 111 010 over 101 011 over 101 over


Specify what additions are giving invalid results.

3 > results < -4

Check your results by performing the same operations after converting the numbers into the decimal system.

Q 4 :
Convert the decimal number 8.625 into floating point IEEE Standard 754 single precision:


OK - I feel like an idiot. The sides have an almost carbo copy problem. I was looking for an
understandable spec. Not until I finally gave up and tried to build a spec from the examples,
only then did I see that this problem is almost verbatum of an example. But I'm left with a perplexed
question. the slides say normalization happens by putting the decimal left of the left most integer.

This spec puts the \d.\d\d\d etc. The notes are pushing the student off point in this section.
the example is negitive, converting -12.625(10). The binary is -1100.101, plain binary. They
normalized it to -1.100101 x 2^3

Why? Why not -0.1100101 x2^4. Is this just for negatives? By examination of the other examples,
it seems that the deimal is always placed to the RIGHT of the left most digit, not left of it like
the author describes as most common usuage.?? Nuh? What can be more common that the single float?

Anyway:

8.625(10) =

8 0
4 0
2 0
1 1

1000

.625
1/250 1
500 0
1/000 1

1000.1010(2)

1.0001010(2) * 2^3

Exponent Bits: 00000011 (2)
01111111 (2) (excess 127 for single precision)
_________
10000010 (2)


Fractional Bits:
Loss the leading One (Not sure why, but it is repesented in signed bit
000 1010 0000 0000 0000 0000

Sig Bit is 0

0 1000 0010 000 1010 0000 0000 0000 0000




As this was not covered in tonight’s class, please use following web page to find steps to follow.

http://www.madirish.net/240

Q5

Give the corresponding translation to the following word of 4 bytes encoded in hexadecimal: 49 55 50 31

As:

- A signed integer,

49 55 50 31
0100 1001 0101 0101 0101 0000 0011 0001

1 0,4,5,12,14,16,18,20,22,24,27,30
16
32
4096
16384
65536
262144
1049576
16777216
67108864
134217728
1073741824
---------------
1230327857 -

- An integer represented in 2's complement,

0100 1001 0101 0101 0101 0000 0011 0001
1011 0110 1010 1010 1010 1111 1100 1110
1
-----------------------------------------
1011 0110 1010 1010 1010 1111 1100 1111



- A number represented by single precision floating point following the IEEE 754 standard,


Overflow -- but ...

01.001001010101010101000000110001 x2^30


Exp 11110
01111111 (+127) (127 + 30 = 157)
---------
0|10011101|0010010101010101010000
^thats 23





- A sequence of ASCII characters (each represented with 8 bits, the most significant bit is unused and coded 0)

49 55 50 31

I U P I




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Q6



Consider the following two numbers, encoded according to the IEEE 754 single precision and represented in hexadecimal standard:

3E E0 00 00 and 3D 80 00 00
Hex : 3E E0 00 00 3D 80 00 00

_________________________________________________________________________________________________________________
|Binary : 0011 1110 1110 0000 0000 0000 0000 0000 | 0011 1101 1000 0000 0000 0000 0000 0000 |
_________________________________________________________________________________________________________________|
|Dec : 1,054,867,456 | 1,031,798,784 |
_________________________________________________________________________________________________________________|
|754 S :0 100,1110,0 111,1011,10 00,0000,0000,0000 | 0 100,1110,0 111,011 0,0000,0000,0000,0000 |
_________________________________________________________________________________________________________________|


Calculate the sum and give the result as IEEE 754 single precision and decimal form.

***Note, I'm not sure if you want to convert first and then do the math or take the sums and then convert. I'll do harder one
although adding 754S floats is guessing on my part:


Decimal Sum: 2,086,666,240
Hex Sum: 7C 60 00 00
SINCE they have both the same exponent bits you can add them and remember you have a hidden on in the fraction 1....

1.111,101,110
1.111,011,000
11.111,000,110

carry the one to the exponent
100,1110,1

the new 754s binary for the sum:

0 100,1110,1 111, 1000, 1100, 0000, 0000, 0000: Which translates to

Exp
+ 0011110 = 30(2)

Fract: 1.111100011(2)

111 1100 0110 0000 0000 0000 0000 0000

which translates 7C 60 00 00 in hex -- bingo


Just to do it the other way

Sum 2086666240

Binary 1111100011000000000000000000000

1.111100011 2^30

30 + 127 = 157 = 10011101
0 100, 1110, 1 111, 1000,11 00,0000,0000,0000



**NOTE Tracking all these decimal places is very hard on my dyslexia
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





Same question with the numbers: C8 80 00 00 and C8 00 00 00.


C8 80 00 00 and C8 00 00 00
Hex : C8 80 00 00 C8 00 00 00

_________________________________________________________________________________________________________________
|Binary : 1100 1000 1000 0000 0000 0000 0000 0000 | 1100 1000 0000 0000 0000 0000 0000 0000 |
_________________________________________________________________________________________________________________|
|Dec : 3,363,831,808 | 3,355,443,200 |
_________________________________________________________________________________________________________________|
|754 S :0 100,1111,0 100, 1000,1000,0000,0000,0000 | 0 100,1111,0 100 1000,0000,0000,0000,0000 |
_________________________________________________________________________________________________________________|

exp = 10011110 (2) exp = 10011110
frac = 100,100,010,000,000,000,000,00 frac = 100 1000 0000 0000 0000 0000

Sum 01 90 80 00 00
0000 0001 1001 0000 1000 0000 0000 0000 0000 0000

754: 1.1001 0000 1000 x 2^32 => 10011111 Sig 0

Sum in 754 S => 0 100,1111,1 100, 1000,0100,0000,0000,0000


Q7

Convert the following number represented as a signed binary integer of 32 bits:

011001010 11100010 10101011 11000101 into real number represented by the IEEE 754 single precision.
*********No - this is not 32 bits. This is 33 bits *****************
sig = 0
1.1001010 11100010 10101011 11000101 x 2^31
exp = 10011110

0 100, 1111,0 100,1010,1110,0010,1010,1011 ==>Lost Precision?




Convert the real number obtained into a signed binary integer 32-bit, and compare the results with original number.

There is a loss of precision BUT problem is broken


What conclusions can you deduct?



I'm tired....



  1. 2014-10-02 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] opensuse 13.1
  2. 2014-10-02 Chris Knadle <Chris.Knadle-at-coredump.us> Re: [NYLXS - HANGOUT] opensuse 13.1
  3. 2014-10-06 mrbrklyn-at-panix.com Subject: [NYLXS - HANGOUT] HW 1
  4. 2014-10-07 einker <eminker-at-gmail.com> Subject: [NYLXS - HANGOUT] Rant of the Day
  5. 2014-10-07 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] Rant of the Day
  6. 2014-10-07 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] Installfest
  7. 2014-10-07 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] Installfest
  8. 2014-10-08 einker <eminker-at-gmail.com> Re: [NYLXS - HANGOUT] Rant of the Day
  9. 2014-10-12 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] News from Israel
  10. 2014-10-12 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] [ruben-at-mrbrklyn.com: new programming language]
  11. 2014-10-12 mrbrklyn-at-panix.com Subject: [NYLXS - HANGOUT] [tetris4-at-gmail.com: Re: chakra installation and fdisk]
  12. 2014-10-12 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] system D is out of fucking control
  13. 2014-10-12 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] some none systemd chocies
  14. 2014-10-12 mrbrklyn-at-panix.com Subject: [NYLXS - HANGOUT] [info-at-meetup.com: Tomorrow: Join 10 Python Programmers and Users at
  15. 2014-10-12 mrbrklyn-at-panix.com Subject: [NYLXS - HANGOUT] Arts and Crafts
  16. 2014-10-12 Chris Knadle <Chris.Knadle-at-coredump.us> Re: [NYLXS - HANGOUT] system D is out of fucking control
  17. 2014-10-12 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] system D is out of fucking control
  18. 2014-10-12 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] Apache Security tips
  19. 2014-10-18 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] Microsoft Key Logging built into OS
  20. 2014-10-18 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] SystemD development hostility towards the GNU/Linux community
  21. 2014-10-18 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] Objecting to SystemdD useless even for Linus
  22. 2014-10-18 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] Theodore Ts'o on systemd - almost on target
  23. 2014-10-18 mrbrklyn-at-panix.com Subject: [NYLXS - HANGOUT] [rickmoen-at-gmail.com: systemd fallacies debunked]
  24. 2014-10-18 mrbrklyn-at-panix.com Subject: [NYLXS - HANGOUT] [csconnection-at-computer.org: Must-Attend Data Event: We're Saving
  25. 2014-10-18 mrbrklyn-at-panix.com Subject: [NYLXS - HANGOUT] [csconnection-at-computer.org: Stay Ahead of the Curve. Come to the
  26. 2014-10-18 mrbrklyn-at-panix.com Subject: [NYLXS - HANGOUT] [enews-at-pharmacytimes.com: Breaking News: Practice Brief on Ebola]
  27. 2014-10-18 mrbrklyn-at-panix.com Subject: [NYLXS - HANGOUT] [hpwebos-at-news.hpwebosnewsletters.com: HP webOS User Newsletter]
  28. 2014-10-19 mrbrklyn-at-panix.com Subject: [NYLXS - HANGOUT] [brian.gupta-at-brandorr.com: [nylug-talk] Fwd: The Debian Outreach
  29. 2014-10-22 mrbrklyn-at-panix.com Subject: [NYLXS - HANGOUT] [ianseeks-at-yahoo.co.uk: Re: [opensuse] System D: Debian Fork]
  30. 2014-10-22 Ruben Safir <mrbrklyn-at-panix.com> Re: [NYLXS - HANGOUT] system D is out of fucking control
  31. 2014-10-23 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] The Dingo-OS manifesto
  32. 2014-10-23 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] The Dingo-OS manifesto
  33. 2014-10-25 Elfen Magix <elfen_magix-at-yahoo.com> Subject: [NYLXS - HANGOUT] Anybody munching on Raspberry Pi?
  34. 2014-10-30 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] =?windows-1252?Q?Fwd=3A_=5Bisoc-ny=5D_VIDEO=3A_Protecting_?=
  35. 2014-10-30 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] Fwd: nixCraft Linux / UNIX Newsletter
  36. 2014-10-30 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] Fwd: nixCraft Linux / UNIX Newsletter
  37. 2014-10-30 mrbrklyn-at-panix.com Subject: [NYLXS - HANGOUT] VIDEO: NYC Social Infrastructure & Tech Ecosystem: Are We At An
  38. 2014-10-30 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] thin clients
  39. 2014-10-30 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] Fetch Execute Cycle
  40. 2014-10-30 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] Fwd: Invitation: Experience with C++11 in ArangoDB
  41. 2014-10-31 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] Computer Archotecture Quiz
  42. 2014-10-31 Ruben Safir <mrbrklyn-at-panix.com> Subject: [NYLXS - HANGOUT] Fwd: Architecture Homework - Review Questions

NYLXS are Do'ers and the first step of Doing is Joining! Join NYLXS and make a difference in your community today!