Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
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!
Solved! Go to Solution.
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
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.
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