I am looking for some potentially unexpected approximations of $\operatorname{erf}(x)$, by which I mean not a really long series expansion, and something that resembles the correct shape for an arbitrary amount of the real domain. Here are some I have come up with myself: $$ \begin{matrix} \tanh(1.182\cdot x) & \text{the constant is a trade-off}\\ \tanh(1.152\cdot x)+\dfrac{e^{-|x-1.5|}\cos(x-1.5)}{20} & \text{smaller error but not symmetrical}\\ \tanh\left(\frac{x|x|}{4}+x\right) & \text{constant not optimised for this yet} \end{matrix} $$ I also read this article which listed a method for assuming solutions of the form: $$\tanh(f(x))$$ Just like I initially thought. My question is really, does anyone have any surprisingly accurate short approximations for it? Thanks
2026-03-29 15:59:53.1774799993
Simple approximations for $\operatorname{erf}(x)$
531 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
1
There are 1 best solutions below
Related Questions in NUMERICAL-METHODS
- The Runge-Kutta method for a system of equations
- How to solve the exponential equation $e^{a+bx}+e^{c+dx}=1$?
- Is the calculated solution, if it exists, unique?
- Modified conjugate gradient method to minimise quadratic functional restricted to positive solutions
- Minimum of the 2-norm
- Is method of exhaustion the same as numerical integration?
- Prove that Newton's Method is invariant under invertible linear transformations
- Initial Value Problem into Euler and Runge-Kutta scheme
- What are the possible ways to write an equation in $x=\phi(x)$ form for Iteration method?
- Numerical solution for a two dimensional third order nonlinear differential equation
Related Questions in SOFT-QUESTION
- Reciprocal-totient function, in term of the totient function?
- Ordinals and cardinals in ETCS set axiomatic
- Does approximation usually exclude equality?
- Transition from theory of PDEs to applied analysis and industrial problems and models with PDEs
- Online resources for networking and creating new mathematical collaborations
- Random variables in integrals, how to analyze?
- Could anyone give an **example** that a problem that can be solved by creating a new group?
- How do you prevent being lead astray when you're working on a problem that takes months/years?
- Is it impossible to grasp Multivariable Calculus with poor prerequisite from Single variable calculus?
- A definite integral of a rational function: How can this be transformed from trivial to obvious by a change in viewpoint?
Related Questions in ERROR-FUNCTION
- Integral of error-like function
- Approximation of poly of degree 4 by degree 2
- To find the new weights of an error function by minimizing it
- About L2 error distribution and its STRANGE oscillatory behaviour
- Remainder in Asymptotic Expansion of Erfc
- How do I show this :$\int_{-\infty}^{+\infty} x^n 2\cosh( x)e^{-x^2}=0$ if it is true with $n$ odd positive integer?
- Intuitive meaning of attitude error function $\Psi$ defined over $SO(3)$. Is $\Psi$ a metric?
- What are the obtained consequences in mathematics if the antiderivative of $e^{-x²}$ and $e^{x²}$ expressed as elementary functions?
- The maximum area of a circle drawn between the graphs of $e^{-x²}$ and $-e^{-x²}$?
- Evaluation of $\int_{0}^\infty \frac{\sin(x)}{x}e^{- x²} dx$
Trending Questions
- Induction on the number of equations
- How to convince a math teacher of this simple and obvious fact?
- Find $E[XY|Y+Z=1 ]$
- Refuting the Anti-Cantor Cranks
- What are imaginary numbers?
- Determine the adjoint of $\tilde Q(x)$ for $\tilde Q(x)u:=(Qu)(x)$ where $Q:U→L^2(Ω,ℝ^d$ is a Hilbert-Schmidt operator and $U$ is a Hilbert space
- Why does this innovative method of subtraction from a third grader always work?
- How do we know that the number $1$ is not equal to the number $-1$?
- What are the Implications of having VΩ as a model for a theory?
- Defining a Galois Field based on primitive element versus polynomial?
- Can't find the relationship between two columns of numbers. Please Help
- Is computer science a branch of mathematics?
- Is there a bijection of $\mathbb{R}^n$ with itself such that the forward map is connected but the inverse is not?
- Identification of a quadrilateral as a trapezoid, rectangle, or square
- Generator of inertia group in function field extension
Popular # Hahtags
second-order-logic
numerical-methods
puzzle
logic
probability
number-theory
winding-number
real-analysis
integration
calculus
complex-analysis
sequences-and-series
proof-writing
set-theory
functions
homotopy-theory
elementary-number-theory
ordinary-differential-equations
circles
derivatives
game-theory
definite-integrals
elementary-set-theory
limits
multivariable-calculus
geometry
algebraic-number-theory
proof-verification
partial-derivative
algebra-precalculus
Popular Questions
- What is the integral of 1/x?
- How many squares actually ARE in this picture? Is this a trick question with no right answer?
- Is a matrix multiplied with its transpose something special?
- What is the difference between independent and mutually exclusive events?
- Visually stunning math concepts which are easy to explain
- taylor series of $\ln(1+x)$?
- How to tell if a set of vectors spans a space?
- Calculus question taking derivative to find horizontal tangent line
- How to determine if a function is one-to-one?
- Determine if vectors are linearly independent
- What does it mean to have a determinant equal to zero?
- Is this Batman equation for real?
- How to find perpendicular vector to another vector?
- How to find mean and median from histogram
- How many sides does a circle have?
You can easily build your own approximations using as a basis $$\text{erf}(x) \sim \sqrt{1-\exp\Big[ -\frac {4x^2} {\pi} P_{n}(x) \Big]}$$ when $P_n(x)$ is the ratio of two polynomials of degree $n$ in $x^2$ or just a polynomial in $x^2$.
These are quite easy to build writing $$P=-\frac{\pi \log \left(1-\text{erf}(x)^2\right)}{4 x^2}$$ and developing as as series around $x=0$ $$P=1-\frac{2 (\pi -3) x^2}{3 \pi }+\frac{2 \left(120-60 \pi +7 \pi ^2\right) x^4}{45 \pi ^2}-\frac{4 \left(-420+280 \pi -56 \pi ^2+3 \pi ^3\right) x^6}{105 \pi ^3}+\frac{2 \left(120960-100800 \pi +28560 \pi ^2-3040 \pi ^3+83 \pi ^4\right) x^8}{4725 \pi ^4}+O\left(x^{10}\right)$$ which can easily be transformed into a Padé approximant.
For example $$P_0(x)=1 \qquad \qquad P_1(x)=\frac {1+\frac{\left(10-\pi ^2\right) }{5 (\pi -3) \pi }x^2 } {1+\frac{\left(120-60 \pi +7 \pi ^2\right) }{15 (\pi -3) \pi }x^2 }$$
To give you an idea, computing the norm $$\Phi_n=\int_0^\infty \left(\text{erf}(x)-\sqrt{1-\exp\Big[ -\frac {4x^2} {\pi} P_{n}(x) \Big]}\right) ^2\,dx $$ we have $$\Phi_0=3.23\times 10^{-5}\qquad \Phi_1=3.04\times 10^{-8}\qquad\Phi_2=1.20\times 10^{-10}\qquad\Phi_3=3.97\times 10^{-12}$$
Edit
Using the ideas from the linked paper, we could do basically the same expanding $$\tanh ^{-1}(\text{erf}(x))=\frac{2 x}{\sqrt{\pi }}-\frac{2 (\pi -4) x^3}{3 \pi ^{3/2}}+\frac{\left(96-40 \pi +3 \pi ^2\right) x^5}{15 \pi ^{5/2}}+\frac{\left(5760-3360 \pi +532 \pi ^2-15 \pi ^3\right) x^7}{315 \pi ^{7/2}}+O\left(x^9\right)$$ and use, as another approximation, $$\text{erf}(x)\sim \tanh \left(\frac{2 x}{\sqrt{\pi }} Q_n(x)\right)$$ and, similar to $P_1(x)$, write $$Q_1(x)=\frac{1+\frac{128-40 \pi -\pi ^2}{30 (\pi -4) \pi } x^2} {1+\frac{96-40 \pi +3 \pi ^2}{10 (\pi -4) \pi } x^2}$$ which is much better than what is given in the paper.
$$\Psi_1=\int_0^\infty\left(\text{erf}(x)-\tanh \left(\frac{2 x}{\sqrt{\pi }} Q_n(x)\right)\right) ^2 \,dx =2.22\times 10^{-7} $$
Even if the two formalisms look similar in terms of accuracy, I would favor the first one because it makes the inversion of the error function easier ; with $P_1(x)$ you just need to solve a quadratic equation in $x^2$ while with $Q_1(x)$ you just need to solve a cubic equation in $x$.
Comparing with Taylor series, the difference between $\text{erf}(x)$ and its approximations is $1.56\times 10^{-4}x^7$ for $P_1(x)$ and $5.916\times 10^{-4}x^7$ for $Q_1(x)$.