Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.maple > #1061
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Joe Riel <joer@san.rr.com> |
| Newsgroups | comp.soft-sys.math.maple |
| Subject | Re: Problem with coeff |
| Date | Mon, 05 Jan 2015 13:27:56 -0800 |
| Organization | A noiseless patient Spider |
| Lines | 24 |
| Message-ID | <87fvbo3okj.fsf@san.rr.com> (permalink) |
| References | <e5f97c4a-77de-43f5-972c-9df6a9a90571@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=us-ascii |
| Injection-Info | mx02.eternal-september.org; posting-host="15591ad2607da309a0d1a78a1d632bc7"; logging-data="21371"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+XxvgffFGMr4nXEuX2GuRy" |
| User-Agent | Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) |
| Cancel-Lock | sha1:A+H4/yQJAJ1red/xLyfqORCw+3E= sha1:q5BX2Tw+v+o6mPu+YD/31uXH2yY= |
| Xref | csiph.com comp.soft-sys.math.maple:1061 |
Show key headers only | View raw
peter.luschny@gmail.com writes:
> p := x -> 7/(-1+x)^0 +6/(-1+x)^1 +1/(-1+x)^2;
> seq(coeff(p(x),(-1+x),-k),k=0..2);
>
> gives me what I want: 7,6,1.
> I expected to get the same result with
>
> r := x -> 2*subs(x=(x/(1-x)),orthopoly[L](2,x));
> convert(r(x),parfrac);
> seq(coeff(%,(-1+x)^(-j)),j=0..2);
>
> But I get an error: 'invalid input'.
> A bug? Workaround?
Use the three argument form of coeff, as you did in the original:
seq(coeff(%,(-1+x),-j),j=0..2);
7,6,1
--
Joe Riel
Back to comp.soft-sys.math.maple | Previous | Next — Previous in thread | Next in thread | Find similar
Problem with coeff peter.luschny@gmail.com - 2015-01-05 13:08 -0800
Re: Problem with coeff Joe Riel <joer@san.rr.com> - 2015-01-05 13:27 -0800
Re: Problem with coeff peter.luschny@gmail.com - 2015-01-05 13:34 -0800
csiph-web