Skip to main content

Solve various integral equations using the numerical methods of Betto and Thomas (2021).

Project description

Solve Volterra and Fredholm integral equations

plot generated by package

This package estimates Volterra and Fredholm integral equations.

Volterra

This package provides the function SolveVolterra which approximates the solution, g(x), to the Volterra Integral Equation of the first kind:

f(s) = \int_0^s K(s,y) g(y) dy

using the method in Betto and Thomas (2021).

Parameters

k : function
    The kernel function that takes two arguments.
f : function
    The left hand side (free) function that takes one argument.
b : float
    Upper bound of the estimate, defaults to 1.
num : int
    Number of estimation points between zero and `b`.

Returns

grid : 2-D array
    Input values are in the first row and output values are in the second row.

Fredholm

This package provides the function SolveFredholm which approximates the solution, g(x), to the Fredholm Integral Equation of the first kind:

f(s) = \int_0^b K(s,y) g(y) dy

using the method described in Twomey (1963). It will return a smooth curve that is an approximate solution. However, it may not be a good approximate to the true solution.

Parameters

k : function
    The kernel function that takes two arguments.
f : function 
    The left hand side (free) function that takes one argument.
a : float
    Lower bound of the of the Fredholm definite integral, defaults to -1.
b : float
    Upper bound of the of the Fredholm definite integral, defaults to 1.
num : int
    Number of estimation points between zero and `b`.

Returns

grid : 2-D array
    Input values are in the first row and output values are in the second row.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inteq-0.1.1.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

inteq-0.1.1-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page