Search code examples
coefficientstaylor-serieswxmaxima

Taylor series expansion in maxima


How to expand taylor series/polynomials about Q=0 , and then extract coefficients as a list

example :

taylor ( (sin(q)), q, 0, 9); //taylor expansion for first 9 terms gives the next line

(%o1)/T/    q\-q^3/6+q^5/120\-q^7/5040+q^9/362880+...

then using coeff ((%o1), q ^n); gives me the coefficient at n only, what i want is a list for all the coefficients of that expression


Solution

  • Try coeff plus makelist, e.g. something like: makelist(coeff(%o1, q, n), n, 0, 9);