Log in

View Full Version : Something about java


peter1988
Apr 19, 2010, 08:39 AM
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?

InfoJunkie4Life
Apr 20, 2010, 05:16 PM
Looks kind of like Pi to me...

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