Skip to content

Volterra equation #570

@robocop

Description

@robocop

Hello!

I tried to solve a simple Volterra equation using ApproxFun.

Here is my code:

using ApproxFun

d = Interval(0.0, 2.0)
K = Fun((x,y) -> exp(-(x-y)), d^2)
V = DefiniteIntegral(Chebyshev(d))[LowRankFun((x,y)-> y <= x ? K(x,y) : 0.0,d^2)]
one = Fun(x->1.0, d)

u = (I - V)\one;

That is the equation is the following:

u(x) = int_0^x{K(x-y) u(y) dy} + 1; with K(x, y) = exp(-(x-y))

However I got the following error:

WARNING: Maximum number of coefficients 1048577 reached in constructing Fun.
Julia has exited.

I suspect the operator V cannot be interpolated properly.
What should I do in this case?

Note that this code is working for simpler K such as K(x, y) = x-y

Thanks for yor help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions