All Questions
Tagged with trigonometry calculus
2 questions
33
votes
43
answers
5k
views
The Pedant's Cosine
My boss just told me to write a cosine function. Being a good math geek, my mind immediately conjured the appropriate Taylor Series.
$$\cos(x) = \frac 1 {0!} - \frac {x^2} {2!} + \frac {x^4} {4!} - \...
5
votes
16
answers
966
views
Write a Sine-Deriving Machine
The Challenge
Your challenge is to write a program that evaluates the following function:
f(x, t) = d^x / dt^x (sin t)
That is, the x-th derivative of sin t. In case you aren't familiar with ...