Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #6244
| From | Bob Hanlon <hanlonr357@gmail.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Series expansion question |
| Date | 2011-11-07 10:51 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j98d7v$3l2$1@smc.vnet.net> (permalink) |
| References | <201111061056.FAA22703@smc.vnet.net> |
gts[a, b] /. {a -> x0 + z, b -> y0 + z}
Bob Hanlon
On Sun, Nov 6, 2011 at 5:56 AM, Recif <recif@yahoo.com> 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:
> gts[a, b]
> g[x0,y0] + (a-x0) g^(1,0)[x0,y0] + (b-y0) g^(0,1)[x0,y0] ...
>
> However when I assign values to a and b:
> a = x0 + z
> b = y0 + z
>
> gts[a,b]
> gives me an error:
> General::ivar: "x0+z is not a valid variable"
>
> etc.
>
> I would appreciate any help to fix this.
> Thanks.
> Recif
>
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Series expansion question Bob Hanlon <hanlonr357@gmail.com> - 2011-11-07 10:51 +0000
csiph-web