Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.maple > #1061
| From | Joe Riel <joer@san.rr.com> |
|---|---|
| Newsgroups | comp.soft-sys.math.maple |
| Subject | Re: Problem with coeff |
| Date | 2015-01-05 13:27 -0800 |
| Organization | A noiseless patient Spider |
| Message-ID | <87fvbo3okj.fsf@san.rr.com> (permalink) |
| References | <e5f97c4a-77de-43f5-972c-9df6a9a90571@googlegroups.com> |
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