Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #6249 > unrolled thread

Re: Series expansion question

Started byBill Rowe <readnews@sbcglobal.net>
First post2011-11-07 10:53 +0000
Last post2011-11-07 10:53 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: Series expansion question Bill Rowe <readnews@sbcglobal.net> - 2011-11-07 10:53 +0000

#6249 — Re: Series expansion question

FromBill Rowe <readnews@sbcglobal.net>
Date2011-11-07 10:53 +0000
SubjectRe: Series expansion question
Message-ID<j98dar$3n3$1@smc.vnet.net>
On 11/6/11 at 5:56 AM, recif@yahoo.com (Recif) wrote:

>I defined a function: gts[x_, y_] := Normal[Series[g[x, y], {x, x0,
>1}, {y, y0, 1}]]

>and when I use it with 'a' and 'b' undefined, I get the value I
>expect:

>However when I assign values to a and b:
>a = x0 + z
>b = y0 + z

>gts[a,b] gives me an error

How about:

In[2]:= gts[x_, y_] :=
  Block[{a, b},
   Normal[Series[g[a, b], {a, x0, 1}, {b, y0, 1}]] /. {a -> x, b
-> y}]

In[3]:= gts[x + x0, y + y0]

Out[3]= y*(x*Derivative[1, 1][g][x0, y0] +
     Derivative[0, 1][g][x0, y0]) +
    x*Derivative[1, 0][g][x0, y0] + g[x0, y0]

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web