Ask Your Question
0

definition of gcd for(x,y)

asked 2013-01-13 03:01:11 -0500

m marta gravatar image

updated 2013-01-14 01:40:36 -0500

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-13 21:58:50 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2013-01-13 17:06:48 -0500

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
0

answered 2013-01-13 16:37:02 -0500

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

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 03:01:11 -0500

Seen: 148 times

Last updated: Jan 13 '13