Metadata-Version: 2.1
Name: inteq
Version: 0.1.0
Summary: Solve various integral equations using the numerical methods of Betto and Thomas (2021).
Home-page: https://github.com/mwt/inteq
Author: Matthew Wildrick Thomas
Author-email: matthew.thomas@northwestern.edu
License: MIT License
Project-URL: Bug Tracker, https://github.com/mwt/inteq/issues
Platform: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.4
Description-Content-Type: text/markdown
Requires-Dist: numpy
Requires-Dist: scipy

# Solve Volterra and Fredholm integral equations

![plot generated by package](assets/volterra-example.svg)

This package estimates Volterra and Fredholm integral equations. It uses the fast matrix inversion method established in [Betto and Thomas (2021)](https://mattwthomas.com/papers/asymmetric-all-pay-contests-with-spillovers/).

## 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](assets/volterra-equation.svg)

### Parameters

```
k : function
    The kernel function that takes two arguments.
f : function
    The left hand side 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

Coming soon.


