User:Odel: Difference between revisions

From OLPC
Jump to navigation Jump to search
(added a link of what i have contributed)
(An answer)
 
Line 3: Line 3:
-A pippy demo that computed pi
-A pippy demo that computed pi
http://wiki.laptop.org/go/Pippy#compute_pi.21
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.