Linked Questions

13 votes
1 answer
853 views

How to calculate the numerical integral more efficiently?

Rencently, I ecountered the following numerical intergral: $$ \begin{cases} \mathbf I_1=\displaystyle \int_{t}\mathbf N' {\mathbf N'}^{\text T}{\rm d}t\\ \mathbf I_2=\displaystyle \int_{t}\mathbf N'' {...
xyz's user avatar
  • 625
9 votes
4 answers
419 views

How to avoid repetitive calculation when doing numerical integral?

Suppose I have a function f[x] which is very complicated, together with a function g[f[x]]+h[x] to integrate. That is: ...
an offer can't refuse's user avatar
3 votes
2 answers
847 views

NIntegrate piecewise vector function

Is there a way to numerically integrate a vector function defined via Piecewise? Example: ...
Thomas's user avatar
  • 133
7 votes
1 answer
1k views

Mathematica 10.2 is slow to NIntegrate highly oscillatory integrals

I noticed that Mathematica V10.2 is taking much longer to run my code when compared with V9. One function that seems affected is NIntegrate. For example, for a ...
Frederico's user avatar
3 votes
2 answers
2k views

Numerical integration's speed

Consider this numerical integration of a Bessel function: Do[NIntegrate[BesselJ[2, x], {x, 0, 10000}], {i, 1, 100}] // AbsoluteTiming {4.033403, Null} This is ...
MOON's user avatar
  • 3,876
5 votes
2 answers
1k views

NDSolve in Mathematica won't use all the cores avaiable

When I solve a system of differential equations in MATLAB, the task manager shows that all the CPU cores are in use. This is not true when I solve the same system in Mathematica. I have six cores. ...
MOON's user avatar
  • 3,876
3 votes
2 answers
1k views

More issues Integrate, NIntegrate, FindRoot

I'm trying to solve a system of 3 non-linear equations using FindRoot and Integrate. If I start FindRoot[] close to the right answer, it works well but returns a bunch of error messages first. ...
Jerry Guern's user avatar
  • 4,632
2 votes
2 answers
461 views

Mathematica code in fortran [closed]

I have an integral in which the integrand is a combination of ratio of modified bessel function of second kind. I am able to find the solution of this integral with mathematica Nintegrate module with ...
Prabhakar Namdev's user avatar
5 votes
1 answer
337 views

Slow exponential evaluation over lists

This question,which is still unanswered, might be relevant because it involves NIntegrate over lists and it also has Exp. In ...
MOON's user avatar
  • 3,876
1 vote
1 answer
845 views

Slow evaluation of NIntegrate when used as a pure function

I asked a perhaps related question here. Here is my code in below. The goal is that to define a function which must be integrated numerically. The function itself first is calculated over different ...
MOON's user avatar
  • 3,876
3 votes
1 answer
206 views

FunctionInterpolation changes the Output dimensions of an InterpolatingFunction

Minimal example ...
AndreasP's user avatar
  • 598
4 votes
0 answers
251 views

Nested NIntegrate of vector function

I am trying to perform a nested integration where the upper limit of the inner integral depends on the value of the outer integral, like in this question: Nested NIntegrate. Just like the linked ...
David Creech's user avatar
  • 1,128