Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2002
*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 2002

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

Search the Archive

Re: Taylor Series Expansions

  • To: mathgroup at smc.vnet.net
  • Subject: [mg32383] Re: Taylor Series Expansions
  • From: <emueller at ybkim.mps.ohio-state.edu>
  • Date: Thu, 17 Jan 2002 02:23:37 -0500 (EST)
  • Organization: Ohio State University
  • References: <a23g46$9mq$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Try introducing a "dummy parameter" to keep track of the order of the
expansion, such as:

Series[f[x,y] /. {x->a x,y->a y},{a,0,2}] //Normal /.a->1

Erich

On Wed, 16 Jan 2002, Joe Helfand wrote:

> Wow!
> 
>     I have definitely come to the right place.  Thanks for all the
> responses.  Using the Map built in function solved my problem (it still
> took a bit, so you can imagine what I was dealing with).  Here is
> something else which I have wasted some time on not knowing as much
> about Mathematica as I should.  It has to do with multi-variable Taylor
> series expansion.  Mathematica has a built in Series function.  But when
> you use this for multi-variable functions, it doesn't do quite what I'd
> expect.  Let's say I have a function for two fariables, and I want to
> expand to 2nd order.  When I use Series, it expands each varible to
> second order, but includes the cross terms, which I want to belong to a
> 4th order expansion.  For example:
> 
> In[1172]:=
> Normal[Series[Exp[x y], {x, 0, 2}, {y, 0, 2}]]
> 
> Out[1172]=
> \!\(1 + x\ y + \(x\^2\ y\^2\)\/2\)
> 
> But what I really want is just 1 + x y, where if I go to fourth order,
> then I'll take the x^2 y^2 / 2.  I had to take some time to write some
> sloppy Taylor series expansion functions that did what I wanted.  Is
> there a way to get around this problem or do you have any suggestions?
> 
> Thanks Again,
> Joe
> 
> 
> 
> 



  • Prev by Date: Re: Taylor Series Expansions
  • Next by Date: Re: Taylor Series Expansions
  • Previous by thread: Re: Taylor Series Expansions
  • Next by thread: Re: Taylor Series Expansions