wiki:application_pages/apps/python/gaussQuadrature

Application Name

gaussQuadrature

Summary

  • Name: gaussQuadrature
  • Contact Person: support-compss@bsc.es
  • Access Level: public
  • License Agreement: Apache2
  • Platform: COMPSs
  • Repository: gaussQuadrature

Description

Gaussian Quadrature can be used to approximate an integral between the interval [a,b]. The way Gaussian Quadrature is used is similar to the Trapezoidal or Simpson’s method, however instead of using fixed points, we use varying points as well as weights (wi). This allows for a much more accurate approximation of an integral. The integral is approximate by the sum of wi*f(xi) for i between [1,integrationPoints] in each subinterval.

Versions

There is one version

Version 1

objects, where the blocks are saves in objects.

Execution instructions

Usage: runcompss --lang=python --pythonpath=~/bar/apps/python/gaussQuadrature/src/gaussQuadrature/objects/ integration.py <intervals> <integrationPoints> <a> <b>

where:

  • - intervals: number of subintervals to split the interval [a,b]
  • - integrationPoints: number of integration points inside the subinterval
  • - a: lower limit
  • - b: upper limit

Execution Example

runcompss --lang=python --pythonpath=~/bar/apps/python/gaussQuadrature/src/gaussQuadrature/objects/ integration.py 16 3 0 1

Build

No build is required

Last modified 7 years ago Last modified on 12/12/16 12:12:12

Attachments (1)

Download all attachments as: .zip