Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #1407 > unrolled thread
| Started by | TBone <TBone@yahoo.com> |
|---|---|
| First post | 2011-04-02 07:51 +0000 |
| Last post | 2011-04-02 22:06 +0000 |
| Articles | 2 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
Multiplying Polynomials TBone <TBone@yahoo.com> - 2011-04-02 07:51 +0000
Re: Multiplying Polynomials Gary Wardall <gwardall@gmail.com> - 2011-04-02 22:06 +0000
| From | TBone <TBone@yahoo.com> |
|---|---|
| Date | 2011-04-02 07:51 +0000 |
| Subject | Multiplying Polynomials |
| Message-ID | <in6kh7$2iu$1@smc.vnet.net> |
This is very simple and I freely confess my ingnorance.
I'm trying to set up a generating function to count some letters of the
alphabet. Specifically, I need to multiply two polynomials in the
variable x, do some surgery on the result, and continue with another
letter.
Here is my problem.
I start with:
expand[(1+ax+a^2x^2+...)*(1+bx+b^2x^2+...)]
and continue with:
expand[(1+ax+bx+abx^2+...)*(1+cx+c^2x^2+...)]
Howerver, it chokes on the following:
expand[(1 + a x + b x + c x + a^2 x^2 + a b x^2 + b^2 x^2 + a c x^2 + b
c x^2 +
c^2 x^2 + a^2 b x^3 + a b^2 x^3 + a^2 c x^3 + a b c x^3 + b^2 c x^3 +
a c^2 x^3 + b c^2 x^3 + a^2 b^2 x^4 + a^2 b c x^4 + a b^2 c x^4 +
a^2 c^2 x^4 + a b c^2 x^4 + b^2 c^2 x^4 + a^2 b^2 c x^5 + a^2 b c^2 x^5 +
a b^2 c^2 x^5 + a^2 b^2 c^2 x^6)*(1 + dx + d^2 x^2)]
What gives?
TIA!!
--TB
[toc] | [next] | [standalone]
| From | Gary Wardall <gwardall@gmail.com> |
|---|---|
| Date | 2011-04-02 22:06 +0000 |
| Message-ID | <in86ka$9uf$1@smc.vnet.net> |
| In reply to | #1407 |
On Apr 2, 2:51 am, TBone <TB...@yahoo.com> wrote:
> This is very simple and I freely confess my ingnorance.
>
> I'm trying to set up a generating function to count some letters of the
> alphabet. Specifically, I need to multiply two polynomials in the
> variable x, do some surgery on the result, and continue with another
> letter.
>
> Here is my problem.
>
> I start with:
>
> expand[(1+ax+a^2x^2+...)*(1+bx+b^2x^2+...)]
>
> and continue with:
>
> expand[(1+ax+bx+abx^2+...)*(1+cx+c^2x^2+...)]
>
> Howerver, it chokes on the following:
>
> expand[(1 + a x + b x + c x + a^2 x^2 + a b x^2 + b^2 x^2 + a c x^2 + b
> c x^2 +
> c^2 x^2 + a^2 b x^3 + a b^2 x^3 + a^2 c x^3 + a b c x^3 + b^2 c x^3 +
> a c^2 x^3 + b c^2 x^3 + a^2 b^2 x^4 + a^2 b c x^4 + a b^2 c x^4 +
> a^2 c^2 x^4 + a b c^2 x^4 + b^2 c^2 x^4 + a^2 b^2 c x^5 + a^2 b c^2 x^5 +
> a b^2 c^2 x^5 + a^2 b^2 c^2 x^6)*(1 + dx + d^2 x^2)]
>
> What gives?
>
> TIA!!
>
> --TB
Try:
Expand[(1 + a x + b x + c x + a^2 x^2 + a b x^2 + b^2 x^2 + a c x^2 +
b c x^2 + c^2 x^2 + a^2 b x^3 + a b^2 x^3 + a^2 c x^3 +
a b c x^3 + b^2 c x^3 + a c^2 x^3 + b c^2 x^3 + a^2 b^2 x^4 +
a^2 b c x^4 + a b^2 c x^4 + a^2 c^2 x^4 + a b c^2 x^4 +
b^2 c^2 x^4 + a^2 b^2 c x^5 + a^2 b c^2 x^5 + a b^2 c^2 x^5 +
a^2 b^2 c^2 x^6)*(1 + dx + d^2 x^2)]
For:
(1 + dx + d^2 x^2)
do you want:?
(1 + d*x + d^2 x^2)
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web