8th Annual International Conference on Industrial Engineering and Operations Management

Statistical Pi Simulation by Java

Katherine Lim
Publisher: IEOM Society International
0 Paper Citations
1 Views
1 Downloads
Abstract

Pi, the ratio of a circle's circumference to its diameter, is an important but irrational number in math. It is a frequently used number which can be used to find the circumference and area of a circle, as well as the surface area and volumes of spheres and cylinders. The purpose of this project to find pi with higher accuracy. A Java Monte Carlo simulation method is developed to generate random points in the coordinate. By counting the number of points inside and outside the circle, we can calculate the Pi. The sample size can be controlled in the Java program. For each sample size, it was repeated for twenty times see how the relationship between accuracy and the sample size. In the end, the Monte Carlo Method was revised to further improve the Pi accuracy.

Published in: 8th Annual International Conference on Industrial Engineering and Operations Management, Bandung, Indonesia

Publisher: IEOM Society International
Date of Conference: March 6-8, 2018

ISBN: 978-1-5323-5944-6
ISSN/E-ISSN: 2169-8767