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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Modifier for expressing polynomials in descending order?

jroth
4-Participant

Modifier for expressing polynomials in descending order?

Hello,

Just trying to express the polynomials in descending order. It is basically doing the Lagrange's Polynomial for a given Zeta value and I have the number of node points as an input as well. I'm just trying to make all of the outputs in the same format.

pic+5.png

1 ACCEPTED SOLUTION

Accepted Solutions
Werner_E
24-Ruby V
(To:jroth)

Unfortunately we have much too few ways to influence the way the results of symbolic evaluations.

Mathcad will most of the times avoid a minus sign at the front if you use expand or simplify. On the other hand it will sometimes simplify and expression to something like " - (2x-...) " which usually isn't the best idea.

The best I could think of is to use the keyword "series". It will give you at least an ascending order of the terms.

View solution in original post

3 REPLIES 3
Werner_E
24-Ruby V
(To:jroth)

Unfortunately we have much too few ways to influence the way the results of symbolic evaluations.

Mathcad will most of the times avoid a minus sign at the front if you use expand or simplify. On the other hand it will sometimes simplify and expression to something like " - (2x-...) " which usually isn't the best idea.

The best I could think of is to use the keyword "series". It will give you at least an ascending order of the terms.

jroth
4-Participant
(To:Werner_E)

Werner,

Thank you. That worked. I was hoping for descending order, but I must have skipped over series. Any order is what I was hoping to get it expressed in. It makes it MUCH easier when comparing to my hand calculations and derivations.

Do you know of a way to factor the 1/16 outside of the bracket? If not that is fine, but I was just wondering.

Werner_E
24-Ruby V
(To:jroth)

I guess "factor" will factor too much (if possible). You may put 1/16 manually in the placeholder for the units. Don't know if this works in Prime - it does in Mathcad (15 and below).

Otherwise you could assign the vector a variable and evaluate 16*this_vector.

Top Tags