YaStar

0 Reputation

2 Badges

11 years, 213 days

MaplePrimes Activity


These are replies submitted by YaStar

Thank you.

I tried

 

> f := 5*y*z*x+3*x^2;

                         5 y z x + 3 x^2
> g := `%*`(5, x, z, y);

                         %*(5, x, z, y)
> g := `%+`(3*x^2, g);

                    %+(3 x^2 , %*(5, x, z, y))
> value(g);
                         5 y z x + 3 x

 

However, what I am looking for is a representation of g as a sum, but with different ordering than f.

What I am looking for would look like the following:

> f;g;

                         5 y z x + 3 x^2

                         3 x^2 + 5 x y z

Thank you.

I tried

 

> f := 5*y*z*x+3*x^2;

                         5 y z x + 3 x^2
> g := `%*`(5, x, z, y);

                         %*(5, x, z, y)
> g := `%+`(3*x^2, g);

                    %+(3 x^2 , %*(5, x, z, y))
> value(g);
                         5 y z x + 3 x

 

However, what I am looking for is a representation of g as a sum, but with different ordering than f.

What I am looking for would look like the following:

> f;g;

                         5 y z x + 3 x^2

                         3 x^2 + 5 x y z

Thank you for your answer.

The example I gave is part of a bigger class of procedures. I am working with several polynomials and part of my task was to convert the polynomial structure into a list, sort those lists by different monomial orderings, and then return the differently sortet polynomials.

The problem occurs, when I want to switch back to the representation of the polynomials as a sum, so that the user (me) can see, that the polynomials has been sorted and is in different order (if this is the case), but still looks like a polynomial.

But each time I do this, Maple chooses to use its old representation of the polynomial stored in its simplification table.

That is why I am looking for ways to override or delete those entries within an acitve Maple Session, or to tell Maple not to look up those values.

If you have any suggestions, please let me know.

Thank you.

Thank you for your answer.

The example I gave is part of a bigger class of procedures. I am working with several polynomials and part of my task was to convert the polynomial structure into a list, sort those lists by different monomial orderings, and then return the differently sortet polynomials.

The problem occurs, when I want to switch back to the representation of the polynomials as a sum, so that the user (me) can see, that the polynomials has been sorted and is in different order (if this is the case), but still looks like a polynomial.

But each time I do this, Maple chooses to use its old representation of the polynomial stored in its simplification table.

That is why I am looking for ways to override or delete those entries within an acitve Maple Session, or to tell Maple not to look up those values.

If you have any suggestions, please let me know.

Thank you.

Page 1 of 1