Skip to content

Fast quadrature of solutions via interpolation #188

Open
@ChrisRackauckas

Description

@ChrisRackauckas

We have the interpolation, which means we can easily integrate the interpolation on each interval. Analogous to the derivatives,

sol(t,Val{-1})

can give the integral of the interpolation function. Since the interpolation is continuous, by the Fundamental Theorem of Calculus we can get definite integrals like:

sol(b,Val{-1}) - sol(a,Val{-1})

or indefinite integrals:

sol(t,Val{-1}) - sol(t0,Val{-1})

This means that people who want to perform quadrature on the resulting solution could get the results in O(1) using just two interpolation calls, if we define the coefficients for the integrated interpolation which is easy to do.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions