quad


quad, a MATLAB code which estimates an integral by using an averaging technique.

This program is intended as a starting point; Parallel MATLAB's PARFOR, SPMD or task features can be used.

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Languages:

quad is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version and a Python version.

Related Data and Programs:

fft_serial, a MATLAB code which demonstrates the computation of a fast fourier transform, and is intended as a starting point for developing a parallel version.

fire_simulation, a MATLAB code which simulates a forest fire over a rectangular array of trees, starting at a single random location. it is intended as a starting point for the development of a parallel version.

heated_plate, a MATLAB code which solves the steady state heat equation in a 2d rectangular region, and is intended as a starting point for implementing a parallel version.

md, a MATLAB code which carries out a molecular dynamics simulation, and is intended as a starting point for implementing a parallel version.

poisson, a MATLAB code which computes an approximate solution to the poisson equation in a rectangle, and is intended as the starting point for the creation of a parallel version.

prime, a MATLAB code which counts the number of primes between 1 and n, intended as a starting point for the creation of a parallel version.

quad_test

quad2d, a MATLAB code which approximates an integral over a 2d region using a product quadrature rule, and is intended as a starting point for parallelization exercises.

search_test, a MATLAB code which searches the integers from a to b for a value j such that f(j) = c. this version of the program is intended as a starting point for a parallel approach.

Reference:

  1. Gaurav Sharma, Jos Martin,
    MATLAB: A Language for Parallel Computing,
    International Journal of Parallel Programming,
    Volume 37, Number 1, pages 3-36, February 2009.

Source Code:


Last revised on 02 March 2019.