hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HADOOP-5052) Add an example for computing exact digits of Pi
Date Sun, 18 Jan 2009 02:14:59 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-5052?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tsz Wo (Nicholas), SZE updated HADOOP-5052:
-------------------------------------------

    Attachment: 5052_20090117_0.18.patch

5052_20090117_0.18.patch:

- Partition the digits so that all map tasks take approximate the same execution time
{noformat}
Number of Maps    = 10
Number of Digits  = 1000
Map #0: offset=0, size=464
Map #1: offset=464, size=120
Map #2: offset=584, size=84
Map #3: offset=668, size=68
Map #4: offset=736, size=56
Map #5: offset=792, size=52
Map #6: offset=844, size=44
Map #7: offset=888, size=40
Map #8: offset=928, size=36
Map #9: offset=964, size=36
{noformat}

- Convert hex representation of pi to decimal representation
{noformat}
Pi = 3.1415926535 8979323846 2643383279 5028841971 6939937510
       5820974944 5923078164 0628620899 8628034825 3421170679
       8214808651 3282306647 0938446095 5058223172 5359408128
       4811174502 8410270193 8521105559 6446229489 5493038196
       4428810975 6659334461 2847564823 3786783165 2712019091
       4564856692 3460348610 4543266482 1339360726 0249141273
       7245870066 0631558817 4881520920 9628292540 9171536436
       7892590360 0113305305 4882046652 1384146951 9415116094
       3305727036 5759591953 0921861173 8193261179 3105118548
       0744623799 6274956735 1885752724 8912279381 8301194912
       9833673362 4406566430 8602139494 6395224737 1907021798
       6094370277 0539217176 2931767523 8467481846 7669405132
       0005681271 4526356082 7785771342 7577896091 7363717872
       1468440901 2249534301 4654958537 1050792279 6892589235
       4201995611 2129021960 8640344181 5981362977 4771309960
       5187072113 4999999837 2978049951 0597317328 1609631859
       5024459455 3469083026 4252230825 3344685035 2619311881
       7101000313 7838752886 5875332083 8142061717 7669147303
       5982534904 2875546873 1159562863 8823537875 9375195778
       1857780532 1712268066 1300192787 6611195909 2164201989
Total number of decimal digits is 1000.
{noformat}

> Add an example for computing exact digits of Pi
> -----------------------------------------------
>
>                 Key: HADOOP-5052
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5052
>             Project: Hadoop Core
>          Issue Type: New Feature
>          Components: examples
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Tsz Wo (Nicholas), SZE
>         Attachments: 5052_20090115_0.18.patch, 5052_20090117_0.18.patch
>
>
> It would be useful to add an example showing how to use Hadoop to do scientific computing.
 We should add an example for computing exact digits of Pi.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message