cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

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

yhuang-3
1-Newbie

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

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!

1 ACCEPTED SOLUTION

Accepted Solutions
StuartBruff
23-Emerald II
(To:yhuang-3)

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

View solution in original post

2 REPLIES 2
LucMeekes
23-Emerald III
(To:yhuang-3)

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.

StuartBruff
23-Emerald II
(To:yhuang-3)

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

Top Tags