Skip to main content

Questions tagged [numerical-integration]

Questions on the use of numerical functions NIntegrate and NDSolve.

Filter by
Sorted by
Tagged with
2 votes
1 answer
143 views

I want to define a function f[x] and then be able to integrate numerically as a vector - not component by component. The following is my failed attempt: ...
MTYS's user avatar
  • 169
3 votes
2 answers
219 views

I would like to solve the following system of differential equations numerically for two one-dimensional functions $R(x)$ and $\phi(x)$: \begin{eqnarray} c_1 \left(R''(x) - (\phi'(x))^2 R(x) \right) - ...
sap7889's user avatar
  • 93
2 votes
0 answers
60 views

I am currently implementing a variable-order fractional predictor–corrector scheme in Mathematica. Since I am still a beginner with Mathematica programming, I encountered several issues during the ...
rabahi lahcene's user avatar
3 votes
1 answer
183 views

I am trying to solve an iterative matrix ODE of the form $f_k'(x)=T.f_k(x)+B(x)*S.f_{k-1}(x)$, where f is an $n$ dimension column, T and S are $n \times n$ matrices, and $B(x)$ is a function. The ...
MTYS's user avatar
  • 169
0 votes
1 answer
160 views

I am looking for a help in numerically integrating this function: ...
umby's user avatar
  • 651
2 votes
0 answers
74 views

I'm solving an ODE system with multiple events and find the discrete variable not updated as expected because one of the events is not triggered. During narrowing down the problem, I find something ...
metroidman's user avatar
  • 1,277
4 votes
2 answers
370 views

I've been trying to calculate an integral using NIntegrate as follows. ...
dqsang90's user avatar
3 votes
0 answers
125 views

A lofted solid is like a solid cylinder with two different end caps. A natural set of questions given a lofted solid using two shapes would be if we were to be able to rotate an end around the ends ...
Romogi's user avatar
  • 687
0 votes
0 answers
104 views

I have a function $f(z,\bar{z})$ that I would like to eventually integrate over the whole complex plane $\mathbb{C}$ parametrized by $(z,\bar{z})$. The function $f(z,\bar{z})$ has a singularity near $...
paperlemon2's user avatar
5 votes
2 answers
314 views

I the following ODE with parameters \begin{align} B_e\: \theta''(s)+2(s-1)\cos\theta(s)=S_e\: f\left(\theta(s)\right), \end{align} with $0\leq s\leq 1$ and \begin{align} \theta(0)=0\:\:\:\text{and}\:\:...
Daniel Castro's user avatar
7 votes
2 answers
405 views

I have mathematica 14.3. I have encountered a weird issue when numerically integrating this complicated function ...
jkb1603's user avatar
  • 259
3 votes
1 answer
197 views

I have been working on a wiki page about asymptotic Laurent series for derangements, and recently learned that the converse of Watson's lemma often holds, allowing one to represent such series as ...
DroneBetter's user avatar
1 vote
1 answer
160 views

I computed the following numerical integration, which contains some unexpected points. How to revisit it? ...
Robert Xu's user avatar
  • 111
1 vote
2 answers
177 views

I have an integral that I want to integrate over the whole $\mathbb{C}$ plane, say parametrized by $(z,\bar{z})$. The integrand is of the following form $$ \frac{f(z,\bar{z})}{|1-z|^2} - \frac{C}{|1-z|...
paperlemon2's user avatar
0 votes
1 answer
179 views

Below are two equivalent definite integrals. $$\begin{align*}S&=2\pi\int_0^\pi b\sin t\sqrt{a^2\sin^2t+b^2\cos^2t}\text dt\\ &=4\pi b\int_0^\frac{\pi}{2}\sin t\sqrt{a^2-(a^2-b^2)\cos^2t}\text ...
Zirui Wang's user avatar
0 votes
0 answers
76 views

I am hitting a problem with numerical integration. I have a function (a4xinteg in this expression below), the expression is quite long so below you can find a plot of it: I would like to integrate ...
hepphy's user avatar
  • 213
0 votes
0 answers
86 views

I have the following system $$-a_1^2 + 2 a_0 a_2 - 2 b_0 b_2 =0\quad \text{and } \quad a_2^2 - 2 a_1 a_3 + 2 a_0 a_4 - b_2^2 - 2 b_0 b_4 =0$$ where the following $a_i, b_i$ are integral of some ...
hepphy's user avatar
  • 213
5 votes
0 answers
147 views

Suppose we have two interpolating functions with exactly touching domains, in our case {-1, 1} and {1, 2}. How to "glue&...
azerbajdzan's user avatar
  • 32.8k
4 votes
2 answers
155 views

Here we have code that uses WhenEvent[x[t] + y[t] == # & /@ {0.25, 0.5, 0.75} // Evaluate for three different events. ...
azerbajdzan's user avatar
  • 32.8k
5 votes
2 answers
275 views

I want to find for which t any of these holds: x[t] + y[t] == 0.25, x[t] + y[t] == 0.5, <...
azerbajdzan's user avatar
  • 32.8k
0 votes
0 answers
88 views

I'm solving the Regge–Wheeler equation in Schwarzschild spacetime D[u[t, x], {t, 2}] + Vsx[x]*u[t, x] == D[u[t, x], {x, 2}], with the potential ...
kevin's user avatar
  • 1
2 votes
4 answers
201 views

I am trying in this code to solve three non-linear ODEs together, and I want to plot the three functions as functions of η. Why does my code not work? ...
Math View's user avatar
0 votes
0 answers
54 views

Could someone please explain me why these errors happen and if it's possible to solve them? Here's my code ...
casg2412's user avatar
6 votes
4 answers
785 views

Is there a trick to speed up the following calculations? ...
Grzegorz Kruk's user avatar
0 votes
2 answers
265 views

Is there a way to obtain the error on a numerical integration using NIntegrate ? I have try this answer https://mathematica.stackexchange.com/a/102469/111297, ...
Alexa Birter's user avatar
1 vote
0 answers
93 views

I have a matrix, with entries are series with numerical coefficients $$ \begin{pmatrix} G(q) & F(q) \\ F(q) & G(q\rightarrow-q) \end{pmatrix} $$ With $G(q)$ is an expansion obtained with <...
Alexa Birter's user avatar
4 votes
1 answer
244 views

I would like to reproduce the Poincaré sections presented in this and this papers, which look like The figures are for energy values of E=0.2 (a) and E=0.25 (b) in the Hamiltonian, which reads $$H=\...
Shasa's user avatar
  • 1,085
2 votes
2 answers
120 views

I am triggered about something, I have the following limit: $$ \tiny \lim_{\beta \to \infty} \left[\frac{k^2 y^2 \, sech^2\left(\frac{1}{4} \sqrt{4 - 4k^2 + k^4 + 4y^2} \,\beta\right)\left(\sqrt{4 - ...
hepphy's user avatar
  • 213
6 votes
1 answer
677 views

There is a need to increase the number of correct decimal digits from this integral: ...
Mats Granvik's user avatar
  • 1,221
0 votes
0 answers
118 views

I have a very nasty integrand $$A(q,\Omega,k,\beta,y,x)= \int \mathrm{d}k \, \mathrm{d}x \, \mathrm{integrand_A}$$ where $\beta,y$ are numbers, and I integrate over $k$ and $x$ so at the end I only ...
hepphy's user avatar
  • 213
7 votes
6 answers
633 views

I'm trying to solve the equation \begin{align} \epsilon_b\:\theta''(s)-(l-s)\cos\theta(s)=\epsilon_\gamma\sin\theta(s)\cos\theta(s), \end{align} with $0\leq s\leq l$ and \begin{align} \theta(0)=0\:\:\:...
Daniel Castro's user avatar
2 votes
2 answers
269 views

I'm trying to plot the motion of a star around a black hole by using the Schwarzschild equations in 2D. I will use only r and φ equations, while the equation for t will be obtained from the energy ...
znp.'s user avatar
  • 87
0 votes
0 answers
144 views

I want to analytically integrate this integration $$\int_0^{1 - 3/rs}\left(\frac{9 \sqrt{3} \sqrt{\frac{1}{\left(1-\frac{2}{\eta }\right) \eta ^2 \left(\frac{\eta ^2}{1-\frac{2}{\eta }}-27\right)}}}...
Amnish's user avatar
  • 57
0 votes
1 answer
82 views

I am working on a light-matter interaction project and I am stuck on an integration. The problem is as follows: I have a system of 16 equations with 16 unknowns. I can solve this system of equations (...
Bihag Dave's user avatar
3 votes
1 answer
181 views

I want to integrate a function like NIntegrate[f[x1] g[x2], {x1, 0, L}, {x2, x1, L}] which is a triangle region. For every x1, ...
T qenb's user avatar
  • 83
1 vote
1 answer
325 views

I am trying to numerically solve a complex equation eq[x,y,μ] that includes a complex integral. The integrand contains the inverse hyperbolic tangent function ...
Gallagher's user avatar
  • 1,038
1 vote
0 answers
83 views

I'm working on computing the inverse Fourier transform of a function derived from a matrix construction involving a Poisson-weighted system. Here's the relevant setup.The main object is a matrix-...
Ruth Murphy's user avatar
8 votes
1 answer
293 views

I am interested in Fomes Fomentarius or "Tinder Polypore" mushroom patterns (original photo, diagrams of Voronoi and Delaunay): At first it seems something simple, like a sunflower seed ...
lesobrod's user avatar
  • 2,590
2 votes
1 answer
195 views

I have a problem when I want to solve this integro-differential equation where the $\chi' (U)$ appears in the integrand. If statement gives the $chiIntegral=0$ for $umax=20$ since the upper bound of ...
noone235711's user avatar
2 votes
1 answer
145 views

I have a function which I want to integrate and then plot. The function is a complicated one and getting an error SystemException["MemoryAllocationFailure"]. Can any one fix this? The code ...
Debojyoti Mondal's user avatar
3 votes
1 answer
285 views

Actually I don't know what is the problem, but the program doesn't give me a result. The last time I ran the program, it has been counting for 5 hours. Maybe I should give the program more time to end....
Sasha's user avatar
  • 61
2 votes
1 answer
282 views

I'm working on finding the limit of a function that involves nested integration. I've written the code, and it's running an iterative procedure. However, each iteration currently takes about 24 hours ...
Oyezy's user avatar
  • 21
0 votes
0 answers
101 views

I know several examples Monitor, EvaluationMonitor and IntegrationMonitor but cannot ...
Ulrich Neumann's user avatar
0 votes
1 answer
258 views

I applied the recommendations from my previous question, the calculation time was reduced. Thank you very much! Now I have a question regarding the calculation of some matrix elements, for example <...
Mam Mam's user avatar
  • 1,933
4 votes
3 answers
289 views

I have a Table of interpolated functions that are generated as parametric solutions via NDSolve. I want to plot all of them, but ...
Jens's user avatar
  • 385
1 vote
0 answers
140 views

The code below is used to calculate the matrix elements He. However, the calculation of each element takes a very long time. Question: How can the speed of these ...
Mam Mam's user avatar
  • 1,933
2 votes
1 answer
352 views

I'm working with numerical integrations of multi-valued functions which have integration limits at a branch cut and I don't want the integration "jumping" the branch cut into the next branch ...
josh's user avatar
  • 2,749
3 votes
2 answers
300 views

I was hoping to solve a two dimensional integration equation, which is actually a simplified Schrodinger equation in momentum space: $$ (x^2-3)f(x,y)-\int_0^\infty du\int_0^{\pi}dv\frac{u^2\sin{v}f(...
quantumology's user avatar

1
2 3 4 5
74