NeraSnow

55 Reputation

3 Badges

2 years, 227 days

MaplePrimes Activity


These are questions asked by NeraSnow

a := x -> x + 1;
b := x -> a(x) + x^2;
a := x -> x + 5;
b(x);
                            2        
                           x  + x + 5

However, I wish my b(x) to be x^2 + x + 1. How could I do it?

 I have the following code snippet.

f := x^11 + 2*x^9 + 2*x^8 + x^6 + x^5 + 2*x^3 + 2*x^2 + 1;
g := 2*x^10 + x^7 + 2*x^4 + x;

Gcd(f, g) mod 3;
                        9      6    3    
                       x  + 2 x  + x  + 2
with(Algebraic);
Gcd(f, g) mod 3;
                              6    
                             x  + 1

It is surprising to me that using a package actually changes the behaviour of functions not in the package!

Is this a bug or a feature that I am not aware of?

1 2 Page 2 of 2