Thank you, that is much faster way :-)
On Fri, Apr 5, 2013 at 1:08 PM, John Cremona <[email protected]> wrote: > If you type GCD? you will find the answer: it takes either exactly > two arguments, or a list. So this works as expected: > > sage: GCD([f,g,h]) > 1 > > There is also no need to put a semicolon (;) at the end of lines. > > John Cremona > > On 5 April 2013 09:22, Neda <[email protected]> wrote: > > > > Hi > > > > I want to compute the following GCD, > > > > GCD(x^4+x^2+1 , x^4-x^2-2*x , x^3 - x^2-4 * x+4 ) > > > > I wrote it as > > > > R.< x, y ,z>=PolynomialRing(QQ,3); > > f=x^4+x^2+1; > > g=x^4-x^2-2*x; > > h=x^3-1; > > > > k= f.gcd(g) > > w=k.gcd(h) > > w > > > > Is it the correct form? or I should try any other commands? > > > > -- > > You received this message because you are subscribed to the Google Groups > > "sage-support" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to [email protected]. > > To post to this group, send email to [email protected]. > > Visit this group at http://groups.google.com/group/sage-support?hl=en. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/sage-support?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sage-support?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
