Common Numerical Integration and Linear System Solving Methods
Numerical integration
For a certain function
Euler integral
The classical expression of approaching curves with a line
Explicit Euler
The simplest integration method, however, may have numerical expansion
Implicit Euler
Updating the present with future states requires solving linear systems with numerical dissipation
Semi_Implicit Euler
The combination of explicit and implicit Euler for numerical stability
Leap Frog
A variant of semi implicit Euler, which separates velocity and displacement by half an hour and updates them using the midpoint method, resulting in smaller errors
Velocity verlet
Introducing velocity to simplify the Welley integral and changing the midpoint method to the trapezoidal method compared to the frog jumping method, so that velocity and position can be synchronized in time
Runge Kutta
The Euler method is actually a first-order Runge Kutta, while the higher-order Runge Kutta uses an approximation of the derivative at the midpoint to estimate the subsequent derivative using the previous derivative
RK2
Linear system
The classical solution to the problem of
Matrix decomposition
Decompose a complex matrix into the product of several simple matrices to facilitate inversion. Taking the eigen library as an example, the most commonly used ones are LU decomposition (which decomposes into the product of lower triangular matrix
Linear iteration
Stop after a certain number of iterations or reaching a certain accuracy
Jacobi iteration
For
Gauss-Seidel iteration
In Jacobi iteration, the result will only be applied to the next round after each round of calculation is completed. If it is updated in a timely manner after the current round of calculation, the efficiency is intuitively better than Jacobian iteration, but Jacobian iteration is naturally suitable for parallelism