Ask Your Question
0

definition of gcd for(x,y)

asked 2013-01-13 10:01:11 +0200

m marta gravatar image

updated 2013-01-14 08:40:36 +0200

kcrisman gravatar image

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.

edit retag flag offensive close merge delete

Comments

I guess the context here is given by http://en.wikipedia.org/wiki/GCD_test. This is off-topic.

burcin gravatar imageburcin ( 2013-01-14 04:58:50 +0200 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-01-13 23:37:02 +0200

calc314 gravatar image

I'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.

edit flag offensive delete link more
0

answered 2013-01-14 00:06:48 +0200

Rolandb gravatar image

Hi, you can always define your own gcd function with the properties you need. There are various equivalent definitions of gcd as these websites show: Paper, Wolfram and Wiki Roland

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-01-13 10:01:11 +0200

Seen: 2,389 times

Last updated: Jan 14 '13