The Compadre Portal website will be unavailable Friday evening through Saturday afternoon as electrical work occurs in the American Center of Physics server room. Down time will begin at 6PM Eastern Time on Friday. Service is expected to resume by 6PM on Saturday, July 30.

Monte Carlo One-dimension Integration Model Documents

This material has 2 associated documents. Select a document title to view a document's information.

Main Document

Monte Carlo One-dimension Integration Model 

written by Francisco Esquembre

The Monte Carlo One-dimension Integration Model illustrates the Monte Carlo integration algorithm to compute the integral of a function f(x). The simulation allows you to select the number of random points, to make an automatic fit to the function graph in the Y axis (thus improving the accuracy of the estimation), and to display the points or not.  The simulation computes the actual value of the integral using a Romberg algorithm to test the Monte Carlo integral approximation.

Last Modified June 10, 2014

This file has previous versions.

Source Code Documents

Monte Carlo One-dimensional Integration Source Code 

The source code zip archive contains an XML representation of the Monte Carlo One-dimensional Integration Model.  Unzip this archive in your EJS workspace to compile and run this model using EJS.

Last Modified February 11, 2012

This file has previous versions.