ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 14 Jan 2013 04:58:50 +0100definition of gcd for(x,y)https://ask.sagemath.org/question/9707/definition-of-gcd-forxy/
I face gcd in Loops part and I just know that it is a function,but what kind of function?and how we can define it?Could you please help me about it.Sun, 13 Jan 2013 10:01:11 +0100https://ask.sagemath.org/question/9707/definition-of-gcd-forxy/Comment by burcin for <p>I face gcd in Loops part and I just know that it is a function,but what kind of function?and how we can define it?Could you please help me about it.</p>
https://ask.sagemath.org/question/9707/definition-of-gcd-forxy/?comment=18403#post-id-18403I guess the context here is given by http://en.wikipedia.org/wiki/GCD_test. This is off-topic.Mon, 14 Jan 2013 04:58:50 +0100https://ask.sagemath.org/question/9707/definition-of-gcd-forxy/?comment=18403#post-id-18403Answer by calc314 for <p>I face gcd in Loops part and I just know that it is a function,but what kind of function?and how we can define it?Could you please help me about it.</p>
https://ask.sagemath.org/question/9707/definition-of-gcd-forxy/?answer=14455#post-id-14455I'm not clear on exactly what your question is, but here is some information.
The syntax for `gcd` is:
gcd(a,b)
You can get help on the `gcd` command by typing `gcd?` at the prompt. If you want to see the details of Sage's `gcd` code, you can type `gcd??` at the prompt.
Sun, 13 Jan 2013 23:37:02 +0100https://ask.sagemath.org/question/9707/definition-of-gcd-forxy/?answer=14455#post-id-14455Answer by Rolandb for <p>I face gcd in Loops part and I just know that it is a function,but what kind of function?and how we can define it?Could you please help me about it.</p>
https://ask.sagemath.org/question/9707/definition-of-gcd-forxy/?answer=14456#post-id-14456Hi, you can always define your <b>own</b> gcd function with the properties you need. There are various equivalent definitions of gcd as these websites show: <a href=http://www.math.sunysb.edu/~moira/mat331-spr10/papers/1997%20PolezziA%20Geometrical%20Method%20for%20Finding.pdf,
[Paper](http://www.math.sunysb.edu/~moira/mat331-spr10/papers/1997%20PolezziA%20Geometrical%20Method%20for%20Finding.pdf), <a href=http://mathworld.wolfram.com/GreatestCommonDivisor.html[Wolfram](http://mathworld.wolfram.com/GreatestCommonDivisor.html)<a href=en.wikipedia.org/wiki/Greatest_common_divisor
[ and Wiki](http://en.wikipedia.org/wiki/Greatest_common_divisor)
RolandMon, 14 Jan 2013 00:06:48 +0100https://ask.sagemath.org/question/9707/definition-of-gcd-forxy/?answer=14456#post-id-14456