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


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

Re: Series expansion question

From Bill Rowe <readnews@sbcglobal.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Series expansion question
Date 2011-11-07 10:53 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j98dar$3n3$1@smc.vnet.net> (permalink)

Show all headers | View raw


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]

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

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

csiph-web