Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any plans for hypersingular integrals common in boundary element method? #47

Open
KapilKhanal opened this issue Jun 12, 2024 · 2 comments

Comments

@KapilKhanal
Copy link

KapilKhanal commented Jun 12, 2024

Hi I was just wondering if there are any plans for integrals of type r^{-2 }and above.

Thanks,

@dlfivefifty
Copy link
Member

Possibly at some point but note you can compute these with auto-diff, here we compute the integral of $\exp(x)/(1.00001 - x)^2$:

julia> P = Legendre(); f = expand(P, exp); Sf = z -> stieltjes(f, z);

julia> @time ForwardDiff.derivative(Sf, 1.00001)
  0.000015 seconds (9 allocations: 816 bytes)
-271798.40516450343

julia> @test ForwardDiff.derivative(Sf, 1.00001)  -271798.4051645036 # mathematica w/ high precision
Test Passed

@KapilKhanal
Copy link
Author

KapilKhanal commented Jun 13, 2024

Awesome, I have the integrals 1/x^2 , 1/x^3. Does it work for these kind of kernels? I do not have test data point for these.

Also, I am confused a little bit on why autodiff would work in these cases. So if I have an algorithm for analytical integrals (that removes singularity somehow) of (1/x) , I can autodiff it to get the integrals of (1/x^2) and so on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants