Taylor Series

Given a polynomial f Q[X] and an order n N, compute the Taylor series (around 0) up to order n of one of the expressions sin(f), cos(f), exp(f), log(1-f), 1/f.

Input f,  e.g., X^3+X   
</COMMENT>
Input order n,  e.g., 5
</COMMENT>
 
sin(f)
</COMMENT>
</COMMENT>
 
cos(f)
</COMMENT>
</COMMENT>
 
exp(f)
</COMMENT>
</COMMENT>
 
log(1-f)
</COMMENT>
</COMMENT>
 
1/f
</COMMENT>
</COMMENT>