Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
50 views

handling symbolical and numerical nested integrals

I'm working on reproducing a calculation from this paper https://arxiv.org/abs/1712.03972 for my thesis but I'm struggling with how to properly implement the nested integrals in Python, specifically ...
Schiele's user avatar
  • 101
1 vote
0 answers
78 views

Numerical integration over part of a sphere

I want to numerically compute the surface integral, $$ \int_0^{2\pi} d\phi \int_{\theta_0}^{\theta_1} d\theta \sin{\theta} f(\theta,\phi) $$ Is there a clever transformation from this integral over ...
vibe's user avatar
  • 1,078
3 votes
0 answers
60 views

Quadrature on an interval $[0,h]$ for $f\in C^3$ vanishing at zero

Cross-posted at Math SE I am studying for an exam and I would like to receive feedback on my solution to a past problem on numerical integration and/or receive suggestions about how to improve my ...
Diffusion's user avatar
  • 131
2 votes
0 answers
100 views

Calculating Debye functions to high accuracy (hundreds of bits), is it possible to be faster than generic quadrature?

The Debye functions are defined like so: ${D_n\left(x\right)} = {\frac{n}{x^n} \cdot {\int_0^x{\frac{t^n}{e^t - 1}dt}}}$. I'm trying to evaluate the functions for $n$ from one to four and for $\left\...
user2373145's user avatar
0 votes
0 answers
117 views

How to minimize a numerical integration in python?

I need some help to minimize a numerical integration. It's about a classical problem in physics (hydrogen atom). It can be solved analytically but I need to solve it numerically in Python. We have an ...
Rubens Filho's user avatar
0 votes
0 answers
136 views

Am I doing leapfrog integration correctly?

I wrote this minimal example to examine the Leapfrog integration algorithm. However, I am not sure it is the correct algorithm, and the listing is giving the correct output. Is this the Leapfrog ...
user366312's user avatar
2 votes
2 answers
1k views

Understanding leapfrog integration algorithm

The leapfrog.cpp is an implementation of leapfrog integration algorithm where f() function is being integrated: leapfrog.cpp <...
user366312's user avatar
0 votes
0 answers
41 views

Matching the limits of integration with the proper variables in a complicated case when using scipy.integrate.nquad

I need to integrate expressions containing powers of the function: ...
ale victor's user avatar
0 votes
1 answer
48 views

'Integral2' error in MATLAB for invalid integrand

Here is the code that I am trying to run: ...
vidyarthi's user avatar
  • 111