Group Abstract Group Abstract

Message Boards Message Boards

0
|
5.3K Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

How to evalute an equation

Posted 5 years ago

I have a simple notebook with this input:

d[x] = x + x^2 + x^3 + x^4 + x^5 + x^6

d[x]^2

When I evaluate d[x]^2, it unhelpfully throws back (x+x^2+x^3+x^4+x^5+x^6)^2 . How do I get it to actually evaluate that square and give me the coefficients of the polynomial?

POSTED BY: Ankit X
2 Replies
Posted 5 years ago

Thats perfect, thanks!

POSTED BY: Ankit X

You can do:

d[x]^2 // Expand

i

Or only the coefficients:

DeleteCases[CoefficientList[d[x]^2, x], 0]

i2

POSTED BY: Claudio Chaib
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard