ApproxFun.jl icon indicating copy to clipboard operation
ApproxFun.jl copied to clipboard

Implement `sum` for LogWeight

Open dlfivefifty opened this issue 8 years ago • 6 comments

I'd like to be able to do the following:

x=Fun()
sum(log(abs(x-0.1)))

partly to check SingularIntegralEquation's logkernel.

dlfivefifty avatar Oct 29 '16 22:10 dlfivefifty

Would this be easy to add? It would be great for simple BIEs.

kburns avatar Jan 12 '24 02:01 kburns

You can use SingularIntegrals.jl? It's a slightly different paradigm but can compute such integrals very fast

dlfivefifty avatar Jan 12 '24 11:01 dlfivefifty

How does that handle near singularities? Global refinement? QuadGK actually seems to be working pretty well for this particular case too.

kburns avatar Jan 15 '24 18:01 kburns

it has an exact formula for log kernel of OPs. It's much much faster than QuadGK and the cost is uniform as you approach the interval

dlfivefifty avatar Jan 16 '24 12:01 dlfivefifty

read my paper with @MikaelSlevinsky for info

dlfivefifty avatar Jan 16 '24 12:01 dlfivefifty

Ok I'll take a look, thanks!

kburns avatar Jan 16 '24 18:01 kburns