Here’s a little how-to on figuring out the power series of tan(x), cot(x) and csc(x).
Start with the generating function for the Bernoulli numbers:
Take only the even powers of t on the LHS:
Put :
Recall that and
:
That was pretty easy. How about tan and csc?
Consider
And finally,
Advertisement
More code, less math.
Thanks, Nice little piece =)