Multi-Threaded Monte-Carlo Calculation of Pi - Maple Application Center
Application Center Applications Multi-Threaded Monte-Carlo Calculation of Pi

Multi-Threaded Monte-Carlo Calculation of Pi

Author
: Maplesoft AuthorRussell Lee
Engineering software solutions from Maplesoft
This Application runs in Maple. Don't have Maple? No problem!
 Try Maple free for 15 days!

This worksheet calculates the value of Pi via a multi-threaded (and a single-threaded) Monte-Carlo algorithm. Ntotal darts are randomly thrown at a unit square inscribed with a circle, and the number N that land within the circle are counted. The value of Pi is 4N/Ntotal.

The fractional speed-up of the multi-threaded version over the single-threaded version is calculated. Typically on a dual core computer, the speedup is about 30%.

This application was created in Maple 13.02, and uses features that may not be available with earlier versions of Maple.

Application Details

Publish Date: November 27, 2009
Created In: Maple 13
Language: English

Tags

algorithm

More Like This

picross generator and solver
Fibonacci search method for unimodal optimization
Two dimensional percolation
QUANTUM SCATTERING BY THE ONE-DIMENSIONAL POTENTIAL BARRIER IN MAPLE
Graphing interface for A sin(Bx + C) + D
QUANTUM SCATTERING BY THE ONE-DIMENSIONAL POTENTIAL STEP IN MAPLE
Groebner Bases: What are They and What are They Useful For?
Simulation of a five qubits convolutional code
Prime Implicants of Boolean Expression by Concensus method
Euclid's algorithm for computing greatest common divisors, with a modern improvement
résolution du jeu des chiffres et des lettres