Skip to main content
1-Visitor
October 8, 2015
Solved

How to quickly summarize the coefficients of different terms in a long equation

  • October 8, 2015
  • 2 replies
  • 1374 views

Hi all, I have a long equation calculated by Symbolic solve. It is very long and it is very time consuming to tell the coefficients of each term. Can anyone help me with the attached mathcad file? Thank you!

Best answer by StuartBruff

yhuang-3 wrote:

Hi all, I have a long equation calculated by Symbolic solve. It is very long and it is very time consuming to tell the coefficients of each term. Can anyone help me with the attached mathcad file? Thank you!

Assign the symbolic result to a variable and then extract the coefficients individually to see them (you can use the coeff vector directly in your calculations).

Stuart

2 replies

23-Emerald IV
October 8, 2015

Like this, to get the coefficients of s^0 (the part independent of s), s^1 (the part dependent on s), s^2 ... through s^5:

First assign the expression to a variable, e.g. EQ. Then:

When you then calculate you get:

Success!
Luc

Note that you can get the maximum power of s in your equation with

Meaning there are powers of s starting at 0, up to 4.

23-Emerald V
October 8, 2015

yhuang-3 wrote:

Hi all, I have a long equation calculated by Symbolic solve. It is very long and it is very time consuming to tell the coefficients of each term. Can anyone help me with the attached mathcad file? Thank you!

Assign the symbolic result to a variable and then extract the coefficients individually to see them (you can use the coeff vector directly in your calculations).

Stuart