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


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

Re: How to use SeriesCoefficient to define new functions

From Simon <simonjtyler@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: How to use SeriesCoefficient to define new functions
Date 2011-11-10 12:01 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j9gefc$oue$1@smc.vnet.net> (permalink)
References <j9b6vs$4u6$1@smc.vnet.net> <j9doq6$b6c$1@smc.vnet.net>

Show all headers | View raw


Hi Liu Xiaojun,

You don't need to uses Series before you uses SeriesCoefficient.
SeriesCoefficient can actually return the general coefficient as a DifferenceRoot object. So you could simply use the following:

p[n_][x1_, x2_, x3_] := 
 Block[{k}, SeriesCoefficient[Exp[x1*k + x2*k^2 + x3*k^3], {k, 0, n}]]

I've used k instead of lambda and I've wrapped the right-hand-side in Block, just in case k has a value already. The first 10 functions can be found using

Table[p[i][x, y, z], {i, 1, 10}] // Simplify

Note: your original code will work if change your SetDelayed := to just Set 
p2[x1_, x2_, x3_] =  SeriesCoefficient[SchurGenerator, {\[Lambda], 0, 2}]

Simon

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


Thread

How to use SeriesCoefficient to define new functions Xiaojun <tigertooth4@gmail.com> - 2011-11-08 12:23 +0000
  Re: How to use SeriesCoefficient to define new functions Xiaojun <tigertooth4@gmail.com> - 2011-11-09 11:39 +0000
    Re: How to use SeriesCoefficient to define new functions Simon <simonjtyler@gmail.com> - 2011-11-10 12:01 +0000
  Re: How to use SeriesCoefficient to define new functions Dan <dflatin@rcn.com> - 2011-11-10 12:11 +0000
    Re: How to use SeriesCoefficient to define new functions Xiaojun <tigertooth4@gmail.com> - 2011-11-12 12:41 +0000

csiph-web