Physicist: Don’t know. But if you’re ever stuck on a desert island, here are some tricks you can use. The name of the game is “Taylor polynomials“.
All the other trig function are just combinations of sine and cosine, so this is really all you need. Of course, you can’t add up an infinite number of terms, so if you only go up to the xL term then the error between the sum you have and the actual value of sine or cosine is no more than . Now x can be pretty big, but you can use the fact that sine and cosine repeat every
, as well as the fact that
and
, to get the “x” down to
. So if you sum up to the xL term, then your error will be no larger than
. The “1/L!” makes this error pretty small. Summing up to the x10 term will be accurate to within 3 parts in 100,000 at worst.
For example:
Summing up to the x5 term yields:
Which is accurate to at least the first 4 decimal places.
There aren’t a hell of a lot of important mathematical constants out there. The most important are “e” and ““.
with an error of no more than
. This is another example of a Taylor polynomial. To calculate only e, just set x=1.
with an error of no more than
. One way to derive this equation is to take the Taylor series for Arctan, and plug in 1 (
). This is easy to remember but slow to converge (2,000 terms to get 3 decimal places), so here’s a better one:
with an error of no more than
.
Most people are under the impression that “there is no pattern in pi“, so the fact that we can write down an equation to find pi may seem a little odd. What is generally meant by “no pattern in pi” is that there doesn’t seem to be any pattern in the decimal representation of pi (3.14159…).
The Taylor series and the approximations of pi and e above may seem cumbersome, but in most sciences you’ll find that it’s rare for anybody to go beyond the second term in a Taylor polynomial (sin(x) = x, cos(x) = 1-.5x2). Moreover, due mostly to our crippling sloth and handsomeness, most physicists are happy to say that . So if you’re striving to get things exactly right, you may actually be an engineer.




The more digits the better. Just a few days ago I was a little upset when I couldn’t find my friend’s birthday string in the first 200 million decimal places of pi. (Though converting it to hex and search in the first 4 billion binary digits did the job. How I need a drink, alcoholic of course!)
Friendly reminder: Pi day is coming up (see, you need at least 2 decimal places), but more importantly, it marks the beginning of spring break.
What I really want to know is, how did the Greeks (or anyone for that matter) do math and geometry without Arabic numerals?
With an abacus.
Clearly that was the Chinese. Get your ancient civilizations straight.
Arabic numerals are overrated. Doesn’t matter how you write, arrange, pronounce the numbers, or even use a different base, it’s all good as long as they’re logically equivalent!
“Moreover, due mostly to our crippling sloth and handsomeness, most physicists are happy to say that
= e = 3. So if you’re striving to get things exactly right, you may actually be an engineer.”
sin(x) = x is almost okay, but this line gave me SERIOUS MAJOR creeps.
Question: How do calculators and computer calculate special function values. I know of many possibilities, but what method is used in practise and to what degree of accuracy (normal use not high precision or special methods)?
I suspect the exact technique varies from system to system, but I couldn’t say for certain how any of them work. In general you can get your accuracy ludicrously high with just a little extra processor time.
We got any computer engineers who can field this?
Loved pi = e = 3. So if you’re striving to get things exactly right, you may actually be an engineer. I am wanting to become an engineer and that made me giggle.