2.1.4.1.2. sf_tools.math.integrate module

INTEGRATION ROUTINES

This module contains methods for integration.

Author:Samuel Farrens <samuel.farrens@gmail.com>
Version:1.0
Date:03/04/2017
sf_tools.math.integrate.integrate(func, lim_low, lim_up, *args)[source]

Integrate

This method integrates a given function, which has N additional arguments, between the specified limits.

Parameters:
  • func (function) – Function to be integrated
  • lim_low (float) – Lower limit
  • lim_up (float) – Upper limit
Returns:

Return type:

Result of the definite integral

sf_tools.math.integrate.vintegrate(func, lim_low, lim_up, *args)[source]

Vectorised integration

This method implements a vectorised version of integrate().

Parameters:
  • func (function) – Function to be integrated
  • lim_low (float) – Lower limit
  • lim_up (float) – Upper limit
Returns:

Return type:

Result of the definite integral