anonymous
  • anonymous
Lesson 5: Floating Point Numbers, Successive Refinement, Finding Roots
MIT 6.00 Intro Computer Science (OCW)
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
jamiebookeater
  • jamiebookeater
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
On my computer (Windows 7 x64) running Python 3.2.2 some of the output generator by Prof. Guttag did not match my own. For example when raising to the 2 *** 1000 does not print the L in my case. There were other differences. I'm attaching the handout for this lecture pasted and formatted from the PDF. Hope this helps.
1 Attachment
anonymous
  • anonymous
Just a quick question, which version of Python was used in the lecture?
anonymous
  • anonymous
?

Looking for something else?

Not the answer you are looking for? Search for more explanations.

More answers

anonymous
  • anonymous
" ...sys.maxint is always set to the maximum plain integer value for the current platform..." http://docs.python.org/library/stdtypes.html#numeric-types-int-float-long-complex AMD Athlon II x4 645 Python 2.7.2 (default, Jun 12 2011, 15:08:59) [MSC v.1500 32 bit (Intel)] on win32 my maxint is 2147483647 which is 7FFF FFFF ... all but bit 31
anonymous
  • anonymous
and one more makes it 'long' 2147483648L
anonymous
  • anonymous
In 2.7.2 I get the same answer although in 3.2.2 I get the following: >>> import sys >>> sys.maxint Traceback (most recent call last): File "", line 1, in sys.maxint AttributeError: 'module' object has no attribute 'maxint' >>>
anonymous
  • anonymous
i wonder why?

Looking for something else?

Not the answer you are looking for? Search for more explanations.