Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   Java (https://www.askmehelpdesk.com/forumdisplay.php?f=440)
-   -   Something about java (https://www.askmehelpdesk.com/showthread.php?t=465658)

  • Apr 19, 2010, 08:39 AM
    peter1988
    Something about java
    Halo, I want to ask something about java question, some question had confuse, I need some hints, someone help me please, thank you!

    Calculate the value of π from the infinite series.


    Π = 4 – 4/3 +4/5 - 4/7 + 4/9 - 4/11 + ……



    Print a table that shows the value of π using showMessageDialog by one term of this series, by two terms, by three terms, etc. How many terms of this series do you have to use before you first get 3.14? 3.141? 3.1415? 3.14159?
  • Apr 20, 2010, 05:16 PM
    InfoJunkie4Life

    Looks kind of like Pi to me...

    Write a table, and compare the results to the answers.

  • All times are GMT -7. The time now is 04:41 PM.