if you guys really think you are geniuses then write a java program that can approximate the sin function for any angle between 0 and 360 using taylor expansions
Why would you do that when most popular CPUs offer specialized instructions for calculating trig functions. Most compilers can inline to them. This would only have any importance if you were doing arbitrary precision floating point calculations.