User:Odel: Difference between revisions

From OLPC
Jump to navigation Jump to search
(about m3)
 
(An answer)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Im a high-schooler in Oregon, got an xo throught G1G1 and have been Hacking / Modding ( what ever you want to call it ) sence i got it. So far I have contributed:
Im a random person,and creepy...

-A pippy demo that computed pi
http://wiki.laptop.org/go/Pippy#compute_pi.21

===An answer===

Someone contributed the following to the pippy talk page,
(http://wiki.laptop.org/go/Talk:Pippy)
I copied it over in case you haven't seen it. [[User:Esemplectic|Esemplectic]] 15:33, 1 July 2008 (UTC)

== Re: Compute Pi ==

Travis Hall wrote the pi computation demo
http://wiki.laptop.org/go/User:Odel

There he asked how to increase the precision available to his code. Python has two relevant numeric types, integers and floating-point values. The former numeric type is of infinite precision, whereas the floating-point is an IEEE "double" of 64 bits. Accumulate your result as an integer and infer the decimal position by some other means.

Latest revision as of 15:33, 1 July 2008

Im a high-schooler in Oregon, got an xo throught G1G1 and have been Hacking / Modding ( what ever you want to call it ) sence i got it. So far I have contributed:

-A pippy demo that computed pi http://wiki.laptop.org/go/Pippy#compute_pi.21

An answer

Someone contributed the following to the pippy talk page, (http://wiki.laptop.org/go/Talk:Pippy) I copied it over in case you haven't seen it. Esemplectic 15:33, 1 July 2008 (UTC)

Re: Compute Pi

Travis Hall wrote the pi computation demo http://wiki.laptop.org/go/User:Odel

There he asked how to increase the precision available to his code. Python has two relevant numeric types, integers and floating-point values. The former numeric type is of infinite precision, whereas the floating-point is an IEEE "double" of 64 bits. Accumulate your result as an integer and infer the decimal position by some other means.