Optimal rational approximation
A few days ago I wrote about the approximation for cosine due to the Indian astronomer Aryabhata (476–550) and gave this plot of the error. I said that Aryabhata’s approximation is “not quite optimal since the ripples in the error function are not of equal height.” This was an allusion
Read moreAt scale, anything that could fail definitely will
On today’s episode we chat with Pradeep Vincent, Senior Vice President and Chief Technical Architect for Oracle Cloud Infrastructure, or OCI for short. He shares experiences from his time as an engineer at IBM and what it was like to be a senior engineer working on AWS during the early
Read morePell is to silver as Fibonacci is to gold
As mentioned in the previous post, the ratio of consecutive Fibonacci numbers converges to the golden ratio. Is there a sequence whose ratios converge to the silver ratio the way ratios of Fibonacci numbers converge to the golden ratio? (If you’re not familiar with the silver ratio, you can read
Read moreOpenX uses AmpereOne-powered C3A instances on Google Cloud to drive sustainability and performance at scale
Find out how OpenX leverages AmpereOne-powered C3A instances on Google Cloud to enhance sustainability and performance. Continue reading OpenX uses AmpereOne-powered C3A instances on Google Cloud to drive sustainability and performance at scale on SitePoint.
Read moreMiles to kilometers
The number of kilometers in a mile is k = 1.609344 which is close to the golden ratio φ = 1.6180334. The ratio of consecutive Fibonacci numbers converges to φ, and so you can approximately convert miles to kilometers by multiplying by a Fibonacci number and dividing by the previous
Read moreAncient accurate approximation for sine
This post started out as a Twitter thread. The text below is the same as that of the thread after correcting an error in the first part of the thread. *** The following approximation for sin(x) is remarkably accurate for 0 < x < π. The approximation is so good
Read moreMentally multiply by π
This post will give three ways to multiply by π taken from [1]. Simplest approach Here’s a very simple observation about π : π ≈ 3 + 0.14 + 0.0014. So if you need to multiply by π, you need to multiply by 3 and by 14. Once you’ve multiplied
Read moreA better integral for the normal distribution
For a standard normal random variable Z, the probability that Z exceeds some cutoff z is given by If you wanted to compute this probability numerically, you could obviously evaluate its defining integral numerically. But as is often the case in numerical analysis, the most obvious approach is not the
Read more