Software to do polynomial calculation

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.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top