How to assign the coefficients from a symbolic polynomial to a vector?
- January 4, 2013
- 5 replies
- 3004 views
Hello,
In the attached Mathcad 2000 worksheet, I am trying to reproduce an example of a filter polynomial synthesis from a book on microwave filters. In Step 3 at the end of the worksheet, I construct the polynomial P(s) = i*s^2 + 3.1299*s - 2.3899*i using symbolic math. If I use the symbolic processor to evaluate the function P(s) coeffs, s -->, I obtain a vector containing the coefficients of the powers of s: ( -2.3899i, 3.1299, i). I would like to assign this vector of coefficients to a variable p for later use with the numeric processor. But the statement p := P(s) coeffs, s doesn't work. I realize that I could manually copy and paste the symbolic evaluation result ( -2.3899i, 3.1299, i) into an assignment statement for the variable p, but I need a solution that does not require manual operations so that I can eventually these equations in an optimization loop.
Sincerely,
Ralph Giffone
Bloomfield, NJ

