home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / sci / math / 9585 < prev    next >
Encoding:
Text File  |  1992-07-27  |  1.8 KB  |  44 lines

  1. Newsgroups: sci.math
  2. Path: sparky!uunet!elroy.jpl.nasa.gov!nntp-server.caltech.edu!heckle!allenk
  3. From: allenk@heckle.ugcs.caltech.edu (Allen Knutson)
  4. Subject: Re: Square roots of polynomials
  5. Message-ID: <allenk.712272394@heckle>
  6. Sender: news@cco.caltech.edu
  7. Nntp-Posting-Host: heckle.ugcs.caltech.edu
  8. Organization: California Institute of Technology, Pasadena
  9. References: <1992Jul27.185617.13064@cs.brown.edu>
  10. Date: Mon, 27 Jul 1992 21:26:34 GMT
  11. Lines: 31
  12.  
  13. dzk@cs.brown.edu (Danny Keren) writes:
  14.  
  15. >I am looking for
  16.  
  17. >1) An algorithm that can decide whether a polynomial in one variable
  18. >   (over the integers or reals) has a square root.
  19.  
  20. >2) An algorithm to compute such roots.
  21.  
  22. It seems the best way is to start at the constant term and figure out
  23. inductively what the coefficients of a supposed square root must be. 
  24. This essentially calculates the Taylor series at 0. (Unsurprisingly, 
  25. this method asks you to divide by the constant term, so you have to start 
  26. by dividing by x^2n to get that to be nonzero.) If your polynomial is
  27. of degree 2N, stop at N, and square the attempted root to see if you get 
  28. the given (i.e. if the Taylor series of the square root terminates at
  29. that point).
  30.  
  31. Here's a more fun method that calculates a little bit more than you want.
  32. (I have only thought about it in the real case.)
  33.  
  34. Let p be our poly, p' be its derivative, (p,p') be their GCD. The roots
  35. of (p,p') are all the same as those of p, just raised to 1 lower power.
  36. So p/(p,p') has all the same roots as p, but to the first power.
  37. So if p is a square, (p/(p,p')) ^2 divides p. Reduce now to p / (p/(p,p'))^2,
  38. which is of lower degree, and a square iff p is. (In order to finish up
  39. with the actual root, keep a running product of the p/(p,p')'s.)
  40.  
  41. In particular, this algorithm will compute the largest square dividing p.
  42.                                 Allen K.
  43.  
  44.