Software to do polynomial calculation

Click For Summary
SUMMARY

The discussion centers on finding software for polynomial calculations, specifically for transforming the expression [1 + (1+p)]*p into the polynomial format 2p + p^2. MATLAB is identified as a suitable tool for this task, particularly through its symbolic computation capabilities. Users can define symbols using the command symbs p to treat variables as symbols, allowing for straightforward polynomial expansion using the expand function or other operations.

PREREQUISITES
  • Familiarity with MATLAB programming environment
  • Understanding of symbolic mathematics in MATLAB
  • Knowledge of polynomial operations and expansions
  • Basic experience with MATLAB commands such as expand
NEXT STEPS
  • Explore MATLAB's symbolic toolbox for advanced polynomial manipulation
  • Learn how to use the sym function for defining multiple symbols in MATLAB
  • Research polynomial convolution techniques in MATLAB
  • Investigate alternative software options for polynomial calculations, such as Mathematica or Python's SymPy
USEFUL FOR

Mathematicians, engineers, and students who require efficient polynomial calculations and manipulations, particularly those using MATLAB for symbolic mathematics.

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.
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
2
Views
6K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
5
Views
2K
Replies
3
Views
4K