ruby app that calculates sine and cosine functions with set precision via their Taylor series