R.I.P. Scout26
I use that when I'm doing my moon shuttle gig. It helps cut down on the course corrections. It's one of those things you need as a programmer if you find yourself working on a small system (like embedded stuff) where the cost of implemented floating point math is just too great, either in extra circuitry or in extra memory. Under conditions where the programmer is confined to using fixed-point (scaled integer) math, calculations involving transcendental numbers can still be done using integer multiply/divide sequences. Need the area for a circle? Have radius? It's a simple matter to perform the integer multiplication: V = R x R x 355, and then the integer divide A = V / 113.People using computers running modern CPUs and floating-point co-processors don't worry about stuff like this. People writing for 8-bit and 16-bit embedded processors have to pay attention to these things.Yes, there are still systems that use low-end (inexpensive) processors, and you'd be amazed at the performance you can get from an 8051 or 6809 running at 12MHz if it's not running Windows or some other heavyweight OS.
*Goes to white board**Writes*Pairs of first three odd numbers...113355Split into two three-digit groups...113 _ 355Swap the two groups, like so...355 _ 113Write as ratio...355/113Enjoy six digits of accuracy...3.14159292[Real pi]...3.14159265359Many years ago (like 1983 or 1984) I read one of the FORTH programming books, which had a cool table of rational approximations of various useful constants (like e, pi, and so on), and this very compact "rational pi" was one of them.The next rational approximation which is more accurate involves memorizing two 5-digit numbers having no apparent relation to one another. The 113355 --> 113 355 --> 355 113 --> 355/113 sequence is an easy mnemonic, so in my book it's a keeper.Enjoy.
This is literally one of the best things I've seen in a while. It is now my Facebook status and I definitely told people about it today.
Holy hell. It's like giving a loaded gun to a chimpanzee...
the last thing you need is rabies. You're already angry enough as it is.OTOH, there wouldn't be a tweeker left in Georgia...
BLOOD FOR THE BLOOD GOD! SKULLS FOR THE SKULL THRONE! AND THROW SOME STEAK ON THE GRILL!
Do people just look at you when you tell them stuff like that, nod and slowly back away?
Hey jackwagons, I got pie today! Sweet tater pie.
That is all. *expletive deleted*ck you all, eat *expletive deleted*it, and die in a fire. I have considered writing here a long parting section dedicated to each poster, but I have decided, at length, against it. *expletive deleted*ck you all and Hail Satan.
#define pi 355/113; Yeah, a lot of people don't realize that many aircraft systems are still 8 or 16 bit.
I think the Airbus is 4 bit. And that is on a good day.