473,503 Members | 1,656 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

GCD of polynomials

hi,
anyone knows how does an algorithm for calculating GCD of two polynomials
look like ?
please help me if you can, or give some relevant links :)
Jul 22 '05 #1
7 4453

"adrin" <ad***@adrin.adrin> wrote in message
news:Xn****************************@62.233.128.21. ..
hi,
anyone knows how does an algorithm for calculating GCD of two polynomials
look like ?
please help me if you can, or give some relevant links :)


Try searching at groups.google.com. It's a great resource!
-Howard
Jul 22 '05 #2
"Howard" <al*****@hotmail.com> wrote in
news:zs*******************@bgtnsc05-news.ops.worldnet.att.net:
groups.google.com


i searched google groups, but with no result...
please help me
Jul 22 '05 #3
It looks just like Euclid's algorithm. Divide the largest by the
smallest and replace the largest with the remainder. When the remainder
is 0, the smallest is the gcd.

Jul 22 '05 #4

"adrin" <ad***@adrin.adrin> wrote in message
news:Xn*****************************@62.233.128.21 ...
"Howard" <al*****@hotmail.com> wrote in
news:zs*******************@bgtnsc05-news.ops.worldnet.att.net:
groups.google.com


i searched google groups, but with no result...
please help me


This isn't the correct forum for finding algorithms...this forum discusses
C++ language issues. You might look in a newsgroup with the word
"algorithm" in its name. But, I just did a google search using the
string"algorithm compute GCD polynomials C++", and got lots of hits that
looked useful to me.

-Howard
Jul 22 '05 #5
adrin wrote:
anyone knows how does an algorithm for calculating GCD of two polynomials
look like ?
please help me if you can, or give some relevant links :)


news:sci.math

V
Jul 22 '05 #6
al**********@gmail.com wrote in
news:11*********************@z14g2000cwz.googlegro ups.com:
It looks just like Euclid's algorithm. Divide the largest by the
smallest and replace the largest with the remainder. When the remainder
is 0, the smallest is the gcd.


thank you very much!! :)
and how does division algorithm look like?
Jul 22 '05 #7
adrin wrote:
al**********@gmail.com wrote in
news:11*********************@z14g2000cwz.googlegro ups.com:

It looks just like Euclid's algorithm. Divide the largest by the
smallest and replace the largest with the remainder. When the remainder
is 0, the smallest is the gcd.

thank you very much!! :)
and how does division algorithm look like?


It's long division. Unless the denominator's degree n is less than the
degree m of the numerator, you can obtain from the denominator a
polynomial of degree < n by subtracting a scalar multiple of x^(n-m)
times the numerator. Repeat until the 'denominator' is zero or has
degree < m. The scalars are the coefficients of x^(n-m) in the quotient,
and the final 'denominator' is the remainder.

--
Regards,
Buster.
Jul 22 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1694
by: Chris | last post by:
Does anyone know of a good standalone implementation of multivariable polynomials in python? Thanks, Chris
2
2468
by: dicapryl | last post by:
Hi all! I'm new to here .. so please excuse me if my questions are unclear etc :) I am trying to store polynomials in C++ using linked lists. My class is called Polynomial and i've created a...
0
1111
by: galathaea | last post by:
you will fall in love !! these are the cutest critters !! 3-ary polynomial: http://i10.tinypic.com/2hwlir6.png 4-ary polynomial: full http://i13.tinypic.com/47u0yfm.png
1
3518
by: beck2 | last post by:
hello i am angela and i would like if its kind of anyone to help me by writing me the code of adding 2 oplynomials? polynomials should be entered as where 3,5 and 1 are coefficients of X to the...
4
4619
by: Matthias | last post by:
how do i make a program that gets numbers from a user. and then stores it into an array. using polynomials if the user entered 7 5 4 3 2 the polynomial would be 7x^4+5x^3+4x^2+3x+2 the program...
7
13934
by: yodadbl07 | last post by:
hey im trying to write a class of polynomials using a linked list. But I am getting an error at run time with my Polynomial* getNext() function. The error says access violation reading location. Im...
2
1758
by: manohara | last post by:
WAP a program to add 2 polynomials using a DLL
1
3191
by: unknowncute | last post by:
can you help me make a code about division of polynomials using linked list? thnx!
1
2247
by: Motanyane Tlotliso | last post by:
I wish someone to help me in creating a programm in C++ that can be able to sum two polynomials, subtract one from the other and multiply both polynomials together using a ADT's(struct term). I...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7084
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7278
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7458
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5013
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3167
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.