LastUpdate 1/12/2024

Japanese (日本語版)


 This software is a simuration software that uses the Monte Carlo method to obtain an approximate value of pi. The Monte Carlo method is a general term for methods that perform simulations and numerial calculations using random numbers.
 Two versions are available : the "VB version" created with Visual Basic and the "Java version" created with Java. In addition , there are apps created in Android for simulaing on a smartphone. (For the Android version , see "Interesting Android App" in Menu 1.)
 As an example of finding an approximate value of pi using the Monte Carlo method , it is common to "Scatter sesame seeds to find an approximate value of pi." (Draw a square and a circle inscribed in it , and randomly scatter sesame seeds from above. Calculate the approximate value of pi from the ratio of the number of sesame seeds in a square to the number of sesame seeds in a circle.)

 Draw several parallel lines with a width equal to the diameter of the coin to be thrown. In addition , draw several parallel lines that are the same width as these parallel lines and are orthogonal to each other (Hereafter , it is called a grid line). Randomly throw coins onto this grid. From the ratio of the total number of coins thrown to the number of coins that overlap the grid points , calculate the approximate value of pi. (The intersection of parallel lines on a grid line is called a grid point.)
 The following formula is caluculated to obtain an approximate value of pi.
 π = 4 × (The number of coins that overlap the grid points) ÷ (Total number of coins thrown)
 The number of coins to be thrown is , 10 , 100 , 1000 , 10000 , and 50000.

OS: Confirmed to work on Windows Vista / 7 / 8 / 10
However , to use the "VB version" , you must have the runtime files installed according to the "Setup method " below.
In addition , to use the "Java version", you must have the JDK installed according to the "Setup method" below.

 To use the simulation software "Throw coins to find an approximate value of pi !" , you need to set it up on your hard disk.
 Even if you say setup , all you have to do is to decompress the downloaded compressed file and copy the created folder to the hard disk of the computer you want to use.
 To use the "VB version "on Windows Vista/7/8/10 , download the VB runtime vb6rt340.exe and install it on your computer.
 To install , double click the downloaded file vb6rt340.exe, double click the file "setup.exe" in the created folder "vb6rtest" and follow the prompts.
 Java application can be operated only in the enviroment where JRE (Java SE excution environment) is installed. Download and install the Java Development Kit (JDK) from Oracle website. (free)

【For VB version】
 Double-click the executable file "〜.exe"in the folder created on the drive you set up.

【For Java version】
 Double-click the batch file "〜.bat" in the folder created on the drive you set up.

【For VB version】
 Double-click the executable file "coinpaieng.exe" to start this software.
 Select the total number of coins to throw from the [10] button to the [50000] button and click.
 The number of coins that overlap the grid points and the approximate value of pi at that time are displayed.
 Click the [Init] button to clear the screen.
 Click the [Exit] button to exit this software.

【For Java version】
 Double-click the batch file "〜.bat" to start this software.
 Select the total number of coins to throw from the [10] button to the [50000] button and click.
 The number of coins that overlap the grid points and the approximate value of pi at that time are displayed.
 Click the [Init] button to clear the screen.
 Click the [Exit] button to exit this software.

【For VB version】
 When you download the simulation software "Throw coins to find an approximate value of pi ! (VB) Executable file " , a compressed file "MyTenencoinEngv.lzh" is downloaded. When the downloaded compressed file "MyTenencoinEngv.lzh" is decompressed , a folder "MyTenencoinEngv" is created.

 When you download the simulation software "Scatter sesame seeds to find an approximate value of pi ! (VB) Executable file " , a compressed file "MyGomaEngv.lzh" is downloaded. When the downloaded compressed file "MyGomaEngv.lzh" is decompressed , a folder "MyGomaEngv" is created.

 When you download the simulation software "Scatter needles to find an approximate value of pi ! (VB) Executable file " , a compressed file "MyHariEngv.lzh" is downloaded. When the downloaded compressed file "MyHariEngv.lzh" is decompressed , a folder "MyHariEngv" is created.

【For Java version】
 If you download the simulation software "Throw coins to find an approximate value of pi ! (Java) Executable file" , the compressed file "MyTenencoinEngj.lzh" will be dowmloaded. When the downloaded compressed file "MyTenencoinEngj.lzh" is decompressed , the folder "MyTenencoinEngj" is created.

 If you download the simulation software "Scatter sesame seeds to find an approximate value of pi ! (Java) Executable file" , the compressed file "MyGomaEngj.lzh" will be dowmloaded. When the downloaded compressed file "MyGomaEngj.lzh" is decompressed , the folder "MyGomaEngj" is created.

 If you download the simulation software "Scatter needles to find an approximate value of pi ! (Java) Executable file" , the compressed file "MyHariEngj.lzh" will be downloaded. When the downloaded compressed file "MyHariEngj.lzh" is decompressed , the folder "MyHariEngj" is created.


Simulation software  『Throw coins to find an approximate value of pi!(VB)』 Executable file

Simulation software  『Throw coins to find an approximate value of pi!(Java)』 Executable file

Simulation software  『Scatter sesame seeds to find an approximate value of pi!(VB)』 Executable file

Simulation software  『Scatter sesame seeds to find an approximate value of pi!(Java)』 Executable file

Simulation software  『Scatter needles to find an approximate value of pi!(VB)』 Executable file

Simulation software  『Scatter needles to find an approximate value of pi!(Java)』 Executable file

Go Back to the Top Page



If you have any opinions or impressions about this homepage ,
Please contact Email:wuenaegi@yahoo.co.jp


アクセスカウンター アクセスカウンター