The series command computes a power series for A about X=B to the order N.
series(sin(x),x,0,10); x-1/6*x^3+1/120*x^5-1/5040*x^7+1/362880*x^9