First time here? Check out the FAQ!

Ask Your Question
0

definition of gcd for(x,y)

asked 12 years ago

m marta gravatar image

updated 12 years ago

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.

Preview: (hide)

Comments

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

burcin gravatar imageburcin ( 12 years ago )

2 Answers

Sort by » oldest newest most voted
0

answered 12 years ago

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.

Preview: (hide)
link
0

answered 12 years ago

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

Preview: (hide)
link

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: 12 years ago

Seen: 2,912 times

Last updated: Jan 14 '13