Software to do polynomial calculation

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
zzmanzz
Messages
47
Reaction score
0
Hi,

I'm looking for a program that will take

[1 + (1+p)]*p

and return the unchanged polynomial. i.e. 2p + p^2

I know that MATLAB allows u to do polynomial convolution but for my purposes a program that returns the polynomial in the above format will be much much easier to work with.

Thanks!
 
Physics news on Phys.org
Maybe my question wasn't clear but I did find a way to do it in matlab.

If anyone is curious it's very simple. The key is to define symbols:

symbs p

This tells MATLAB that x and y are symbols not variables.

Then just do expand or regular operations.