User:EverettYou/Approximate Integrals
From Wikipedia, the free encyclopedia
Special Functions
Conner Rounded Square Wave
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
Error function
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
- ,
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
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$.