Questions tagged [numerical-integration]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
61 views

How to prove a truncation error of integration when using runge-kutta to approximate exponential function

If I using the $s$ stage $p$ order explicit Runge-Kutta method with the following Butcher table $$ \begin{array}{c|cccc} c_{0} & 0 & & & \\ c_{1} & a_{2,0} & 0 & & \\ \...
Owen Jun's user avatar
0 votes
1 answer
65 views

What happens to the $O(\cdot)$ terms when we implement the Leapfrog Integration algorithm in a programming language?

Integration Algorithms The Verlet leapfrog algorithm is an economical version of the basic algorithm, in that it needs to store only one set of positions and one set of velocities for the atoms, and ...
user366312's user avatar
0 votes
0 answers
106 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
915 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
24 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
41 views

'Integral2' error in MATLAB for invalid integrand

Here is the code that I am trying to run: ...
vidyarthi's user avatar
  • 111
2 votes
1 answer
112 views

How to numerically solve differential equations involving sines, cosines and inverses of the unknown function?

I'm very new to finite difference method and I am just introduced to methods of solving differential equation using finite difference method via sparse matrix method. I find that the main idea is to ...
Hari Sam's user avatar
0 votes
1 answer
99 views

finding weak form of nonlinear differential equation for FEM simulation

The following is the well-known nonlinear differential equation for director's distribution at static equilibrium in liquid crystal displays(LCD). I want to obtain weak form of the given differential ...
Hari Sam's user avatar
2 votes
0 answers
66 views

Order of local error when integrating ODE with discontinous derivatives

I'm working with ODEs, $$\dot{x} = f(x, t),$$ where the (higher) derivatives of the right-hand side have discontinuities. In particular, $f(x, t)$ is obtained by interpolation of discrete samples, and ...
Tor's user avatar
  • 181