Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1993
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1993

[Date Index] [Thread Index] [Author Index]

Search the Archive

Taylor expansion

  • To: mathgroup at yoda.physics.unc.edu
  • Subject: Taylor expansion
  • From: Janita Wilting <janita at fys.ruu.nl>
  • Date: Fri, 22 Oct 1993 16:08:04 +0100

Hello mathgroup.

I want the coefficients list of the 3rd order Taylor expansion of Cos[x]:

   N[CoefficientList[ Normal[Series[ Cos[x],{x,0,3}]],x]]

This gives me 
  
   {1., 0, -0.5}

Note that the coefficient of the 3rd order term, being zero, is missing.

   N[CoefficientList[ Normal[Series[ Cos[x],{x,0,4}]],x]]

gives:

   {1., 0, -0.5, 0, 0.0416667}

What should I do against missing zeroes at the and of the List?

Please reply to janita at cv.ruu.nl

Thank you!





  • Prev by Date: mathHDF & NeXT
  • Next by Date: random number seeds
  • Previous by thread: random number seeds
  • Next by thread: Re: Taylor expansion