User:EverettYou/Approximate Integrals
Special Functions
[edit]Conner Rounded Square Wave
[edit]Conner rounded square wave can be given by the function
The period of the function is 2π. Parameter α controls the shape: α→0, gives sine wave (with amplitude ~ α); α→1 (from below), gives square wave (with amplitude ~ π/4). Intermediate α provides conner rounded square wave. Note that α>1 will introduce discontinuity at x = ±π/2, and α→∞ also gives square wave (but with amplitude ~ π/2).
Integrals
[edit]Error function
[edit]where
The range of approximation and the precision are not reported; the fitting may take place in vicinity of the real axis. This is designed to be very accurate in a neighborhood of 0 and a neighborhood of infinity, and the error is less than 0.00035 for all real x. Using the alternate value a ≈ 0.14784 reduces the maximum error to about 0.000104.[1]
Cooper instability function
[edit]- ,
where γ stands for the Euler gamma constant. The maximal error is around x = 0.63, and is controlled below 1.73%. To derive the first term, note that
- .
Take this approximation and carry out the integral, one obtain the first term in the approximate formula. The second term is put in by hand to converge the result to the exact integral in the large x limit.
Integral of Monomials over Sphere
[edit]Let $\boldsymbol{x}=(x_1,x_2,\cdots,x_n)$ be a $n$-component unit vector (i.e. $\boldsymbol{x}^2=1$) on the unit sphere $S^{n-1}$. The integral of monomials of $x_i$ over the sphere is given by $$\int_{S^{n-1}}\prod_{i=1}^{n}x_i^{m_i}=\frac{\prod_{i=1}^n(m_i-1)!!(n-2)!!}{(\sum_{i=1}^n m_i+n-2)!!},$$ if all exponents $m_i$ are even. The integral is 0 by symmetry if any exponent $m_i$ is odd. Here $n!!$ denotes the double factorial of $n$.
Fourier Transform
[edit]Fourier Transform of Power Functions
[edit]See Regularization and Renormalization
Series
[edit]1. Expansion of x
- .
stands for the modified Bessel function of the first kind.
References
[edit]- ^ Winitzki, Sergei (6 February 2008). "A handy approximation for the error function and its inverse" (PDF). Retrieved 2011-10-03.