For questions related to approximations

learn more… | top users | synonyms

15
votes
6answers
8k views

Simple numerical methods for calculating the digits of $\pi$

Are there any simple methods for calculating the digits of $\pi$? Computers are able to calculate billions of digits, so there must be an algorithm for computing them. Is there a simple algorithm that ...
10
votes
2answers
411 views

Approximation to the Lambert W function

If: $$x = y + \log(y) -a$$ Then the solution for $y$ using the Lambert W function is: $$y(x) = W(e^{a+x})$$ In a paper I'm reading, I saw an approximation to this solution, due to "Borsch and ...
59
votes
9answers
4k views

Find the average of $\sin^{100} (x)$ in 5 minutes?

I read this quote attributed to VI Arnold. "Who can't calculate the average value of the one hundredth power of the sine function within five minutes, doesn't understand mathematics - even if he ...
9
votes
1answer
556 views

Tensor products of functions generate dense subspace?

Let $X$ and $Y$ be two spaces in certain category, $F(\cdot)$ a functor associating each space with a function space (with certain topology). Assume that for any $f\in F(X)$ and $g\in F(Y)$, $f\otimes ...
16
votes
5answers
3k views

Approximation of $e^{-x}$

Is there a method to mentally evaluate $e^{-x}$ for $x>0$? Just to have an idea when computing probabilities or anything that is an exponential function of some parameters.
65
votes
3answers
3k views

Is there an integral that proves $\pi > 333/106$?

The following integral, $$ \int_0^1 \frac{x^4(1-x)^4}{x^2 + 1} \mathrm{d}x = \frac{22}{7} - \pi $$ is clearly positive, which proves that $\pi < 22/7$. Is there a similar integral which proves ...
44
votes
4answers
4k views

Motivation for Ramanujan's mysterious $\pi$ formula

The following formula for $\pi$ was discovered by Ramanujan: $$\frac1{\pi} = \frac{2\sqrt{2}}{9801} \sum_{k=0}^\infty \frac{(4k)!(1103+26390k)}{(k!)^4 396^{4k}}\!$$ Does anyone know how it works, or ...
5
votes
3answers
436 views

$\lim_{n\to\infty} f(2^n)$ for some very slowly increasing function $f(n)$

I should be able to answer this myself, but feel insecure anyway. I want to know, whether a function f(n) is bounded if n goes to infinity (and if it's bounded, the limit). Heuristically it appears ...
3
votes
0answers
362 views

An Expression for $\log\zeta(ns)$ derived from the Limit of the truncated Prime $\zeta$ Function

I think, here, I found $$ P_\color{red}x(\color{blue}s)=\sum_{p<\color{red}x} \frac{1}{p^{\color{blue}s}} =\sum_{\color{green}n=1}^{\infty}\frac{ \mu (\color{green}n)}{\color{green}n} ...
4
votes
4answers
2k views

Why is $22/7$ a better approximation for $\pi$ than $3.14$?

This seems counterintuitive, but $22/7$ is closer to $\pi$ than $3.14=314/100$ which has a significantly greater denominator. Why is $22/7$ a better approximation for $\pi$ than $3.14$? This has ...
21
votes
9answers
3k views

What is the purpose of Stirling's approximation to a factorial?

Stirling approximation to a factorial is $$ n! \sim \sqrt{2 \pi n} \left(\frac{n}{e}\right)^n. $$ I wonder what benefit can be got from it? From computational perspective (I admit I don't ...
18
votes
8answers
2k views

Rapid approximation of $\tanh(x)$

This is kind of a signal processing/programming/mathematics crossover question. At the moment it seems more math-related to me, but if the moderators feel it belongs elsewhere please feel free to ...
2
votes
4answers
932 views

Approximating $\pi$ using Monte Carlo integration

I need to estimate $\pi$ using the following integration: $$\int_{0}^{1} \!\sqrt{1-x^2} \ dx$$ using monte carlo Any help would be greatly appreciated, please note that I'm a student trying to ...
3
votes
2answers
7k views

Relation between Simpson's Rule, Trapezoid Rule and Midpoint Rule

I am studying numerical approximation and verifying $S_{2n} = \frac{1}{3}\left(T_n +2 M_n\right)$. ($S_n$ refers to Simpson's Rule approximation, $T_n$ refers to Trapezoid Rule approximation and $M_n$ ...
55
votes
12answers
7k views

Can the golden ratio accurately be expressed in terms of e and $\pi$

I was playing around with numbers when I noticed that $\sqrt e$ was very somewhat close to $\phi$ And so, I took it upon myself to try to find a way to express the golden ratio in terms of the ...
23
votes
5answers
3k views

How do you calculate the decimal expansion of an irrational number?

Just curious, how do you calculate an irrational number? Take $\pi$ for example. Computers have calculated $\pi$ to the millionth digit and beyond. What formula/method do they use to figure this out? ...
1
vote
6answers
2k views

How to calculate square root or cube root? [duplicate]

I was reading Richard Feynman biography when I read that one time he was able to calculate the cube root of large number in his brain by just using simple facts of everyday life. So my question is ...
8
votes
6answers
286 views

Approximating $\pi$ with least digits

Do you a digit efficient way to approximate $\pi$? I mean representing many digits of $\pi$ using only a few numeric digits and some sort of equation. Maybe mathematical operations also count as ...
12
votes
1answer
241 views

Showing that $\int_0^\infty x^{-x} \mathrm{d}x \leq 2$.

This integral is very closely related to the sophmores dream that states $$ \int_0^1 x^{-x}\mathrm{d}x = \sum_{n=1}^\infty n^{-n} = 1.27\ldots $$ For example here ...
4
votes
4answers
264 views

Lambert function approximation $W_0$ branch

I am looking for a simple, inexpensive and very accurate approximation of the Lambert function ($W_0$ branch) ($-1/e < x < 0$).
4
votes
1answer
347 views

Approximating Lambert W for input below 0

As a small part of a much bigger project, I need to be able to approximate the numerical output of the Lambert W function. I have found decent approximations (good up to at least 4 decimal places), ...
7
votes
3answers
5k views

How to justify small angle approximation for cosine

Everyone knows the picture that explains instantly the small angle approximation to the sine function (as defined by the parametrisation of the unit circle): "what's the length of that arc?" "See how ...
5
votes
2answers
2k views

How can I calculate non-integer exponents?

I can calculate the result of $x^y$ provided that $y \in\mathbb{N}, x \neq 0$ using a simple recursive function: $$ f(x,y) = \begin {cases} 1 & y = 0 \\ (x)f(x, y-1) & y > 0 \end ...
4
votes
4answers
130 views

$\sin x$ approximates $x$ for small angles

In physics, particularly in waves, we make use of the fact that for small angles (less than $\pi/12$-ish), the sine function value of an angle is pretty close to the value of the angle itself (in ...
3
votes
1answer
125 views

$n \approxeq k + 2^{2^k}(k+1)$. How can one get the value of $k(n)$ from this equation?

I am trying to find approximation for this sum. Asymptotic approximation of sum $\sum_{k=0}^{n}\frac{{n\choose k}}{2^{2^k}}$ Doing following way. Let $a_k(n) = \frac{n\choose k}{2^{2^k}}$. I tried to ...
3
votes
2answers
219 views

approximating a maximum function by a differentiable function

Is it possible to approximate the max{x,y} by a differentiable function? f(x,y)=max{x,y} x,y>0
2
votes
2answers
73 views

$C^\infty$ approximations of $f(r) = |r|^{m-1}r$

Consider $f(r) = |r|^{m-1}r$ where $m \geq 1$. Is it possible to find $C^\infty$ functions $f_n$, such that $f_n \to f$ uniformly on compact subsets of $\mathbb{R}$, $f_n' \to f'$ uniformly on ...
2
votes
1answer
32 views

Error formula for linearization

Can anyone shed some light on this formula? I can't find any information on it. It has three corollaries that I also need to understand:
1
vote
1answer
42 views

Poisson approximation of $X$ by $Poisson(E[X])$

I've tried to find something, but couldn't find anything about the following question. Is it possible to approximate any random variable $X$ with $E[X]=o(1)$ by a Poisson random variable ...
1
vote
1answer
133 views

How to make recursive computation of $I_n=\int_0^1 \frac{x^n}{x+\alpha}\,dx$ stable?

This is homework, so please only hints. We see that the recurrence $$I_n=\frac{1}{n}-\alpha I_{n-1}$$ can be used to compute the value of the integral $I_n=\int_0^1 \frac{x^n}{x+\alpha}\,dx$ ...
1
vote
2answers
102 views

How to approximate this series?

How to approximate this series, non-numerically? $ S_n = \sum_{n=1}^{50} \sqrt{n}$
1
vote
0answers
108 views

How many solutions to $x^3+y^3 = z^3\pm 1$ for $z$ less than a bound?

Assume $a,b,c, N$ as positive integers, let primitive be $\gcd(a,b,c) = 1$ and, $$a^2+b^2 = c^2\tag{1}$$ Supposing you want to know how many solutions there are with $c$ less than a bound $N$. ...
1
vote
1answer
175 views

A counter example of best approximation

Construct a point $f\in C[0,1]$ and a closed subspace $V\subset C[0,1]$ such that $f$ does not have a best approximation in $V$. Definition: $C[0,1]$ is the set of countinous function with the norm ...
1
vote
1answer
521 views

How to fit non-linear matlab data?

I'm working on a problem in scientific computing namely fitting data to this equation $c(z) = 4800 + p_1 + p_2 \cdot z/1000 + p_3 \cdot e^{ -p4 \cdot z/1000}$ The data is in a background question ...
0
votes
1answer
400 views

How to calculate APR using Newton Raphson

I'm have a computer program to calculate apr using Newton Rhapson. I imagine most mathletes can code so i dont imagine the coding being an issue. The solution is based on this initial formula ...
0
votes
2answers
292 views

How to show that a measurable function on $R^d$ can be approximated by step functions?

In Stein's Book: Real Analysis, Theorem 4.3 says that any measurable function $f$ on $R^d$ can be approximated by step functions. But the proof provided there only show that when $f=\chi_E$, with ...
0
votes
1answer
25 views

Approximation related to resonance

Can someone help me with this problem. We have $$x(t)=N \sin (w_{0} t)+\frac{w_0}{w_1}e^{\frac{-t}{T}}\sin (w_{1}t)$$ and $w_1=(1+\frac{\delta_1}{N^2})w_0$ for some $|\delta_1|\leq 1$. I need to ...
0
votes
1answer
110 views

asymptotic limit of $\int_0^{\infty}\left(1-\frac{t^2}{2(2k+3)}+\frac{t^4}{2\cdot 4\cdot(2k+3)\cdot(2k+5)}\right)^qdt$

Help me please with the following integral. I've asked this question before Asymptotic limit of the integral with polynomial, but it turns out that it was incorrect question. I should get an ...
30
votes
7answers
1k views

Pi Estimation using Integers

I ran across this problem in a high school math competition: "You must use the integers $1$ to $9$ and only addition, subtraction, multiplication, division, and exponentiation to approximate the ...
27
votes
1answer
640 views

A series problem by Knuth

I came across the following problem, known as Knuth's Series which originally was an American Mathematical Monthly problem. Prove that $$\sum_{n=1}^\infty ...
23
votes
3answers
500 views

Geometric explanation of $\sqrt 2 + \sqrt 3 \approx \pi$

Just curious, is there a geometry picture explanation to show that $\sqrt 2 + \sqrt 3 $ is close to $ \pi $?
16
votes
5answers
1k views

How best to explain the $\sqrt{2\pi n}$ term in Stirling's?

I recently showed my Algorithms class how to bound $\ln n! = \sum \ln n$ by integrals, thereby obtaining the simple factorial approximation $$ e \left(\frac{n}{e}\right)^{n} \leq n! \leq ...
10
votes
3answers
914 views

Sine Approximation of Bhaskara

An Indian mathematician, Bhaskara I, gave the following amazing of the sine (I checked the graph and some values, and the approximation is truly impressive.) $$\sin x \approx \frac{{16x\left( {\pi - ...
9
votes
1answer
263 views

Why is $10\frac{\exp(\pi)-\log 3}{\log 2}$ almost an integer?

I read that $$10\frac{\exp(\pi)-\log 3}{\log 2} =318.000000033252\dots \approx 318$$ Is this simply a coincidence or can this somehow be explained?
7
votes
3answers
2k views

Approximating the error function erf by analytical functions

The Error function $\mathrm{erf}(x)=\frac{2}{\sqrt{\pi}}\int_0^x e^{-t^2}\,dt$ shows up in many contexts, but can't be represented using elementary functions. I compared it with another function ...
12
votes
2answers
2k views

Euler's Approximation of pi.

I recently stumbled across the formula: $$\pi=20\arctan\frac{1}{7}+8\arctan\frac{3}{79}$$ developed by Euler, for approximating pi. I evaluated it to several thousand decimal places and up to that ...
7
votes
2answers
750 views

Minimum of the Gamma Function $\Gamma (x)$ for $x>0$. How to find $x_{\min}$?

The $\Gamma (x)$ function has just one minimum for $x>0$ . This result uses some properties of the gamma function: $\Gamma ^{\prime \prime }(x)>0$ and $\Gamma (x)>0$ for all $x>0$ $\Gamma (1)=\Gamma ...
6
votes
3answers
462 views

How is it that this shape can converge to what looks like a triangle but has a different perimeter?

I had this strange notion some time ago, and I recently wrote a blog post about it, as a mere curiosity. I don't really consider it a "serious" mathematical question; but out of interest, I wondered ...
5
votes
3answers
4k views

Find formula from values

Is there any "algorithm" or steps to follow to get a formula from a table of values. Example: Using this values: ...
4
votes
2answers
170 views

Evaluate $\sum_0^\infty \frac{1}{n^n}$

Courtesy of this xkcd comic I now know that $$ \sum_{n=1}^\infty \frac{1}{n^n} \approx \ln^e(3) $$ Echoing the views of the comic itself, if I ever find myself taking $\ln^e(x)$ then something has ...