2012-10-12, 07:25 PM (ISO 8601)
Re: Skyscraper Graveyard II: Jealousy and Ambition
There might be some special cases, I can not rule that out. Mostly when you use someone else's code or interact with an existing program, it is through an interface of some sort. How their code works exactly shouldn't matter to you. If it uses pi somewhere, that's not going to affect you, you trust that their implementation is correct and it does what it advertises (of course you might want to check if you don't trust them, but that's another matter).
Originally Posted by Anarion
What you need to be aware of is what input it requires and what its output is expected to be. If it requires pi as input, then obviously you need to give it pi (or half tau), and if it spits out pi then obviously you shouldn't treat that as tau.
Also, I want to say that there's nothing wrong in using the value 3.14 (plus however many decimals you need) if that's what is most natural in a practical application. If you understand that 3.14 is half tau, and you happen to need half tau, then surely you write 3.14 not 6.28/2.
Heck, you can even call that pi if you like, as long as you understand tau and use that as the base definition. Start with tau, learn the math using tau, then do whatever you wish once you understand it.
| Steam : adcoon
"Finished crap can be edited. Unfinished greatness languishes forever. The only bad writing is the thing you didn't write!"