![]() |
![]() |
#23 |
Aug 2019
11 Posts |
![]()
1. Is the polynomial constant a prime number?
-No 2. Is the lead coefficient a prime? [or monic]? -monic 3.If not, are these coefficients special in some way? -Don't understand this question Please explain why you need/want to do this. 4. tell us what you want to do if there are no rational solutions. - If the equation has no rational solution, we don't need the solution. |
![]() |
![]() |
![]() |
#24 | |
Aug 2019
1110 Posts |
![]() Quote:
It comes from elliptic curve, they are either integers or fraction, there are 4 coefficients which has huge number, if you save them, each of them will take 1 MB in a text file, it is that simple, the polynomial is monic, thanks. |
|
![]() |
![]() |
![]() |
#25 |
Nov 2003
22×5×373 Posts |
![]() |
![]() |
![]() |
![]() |
#26 | |
Feb 2017
Nowhere
24×32×29 Posts |
![]() Quote:
If you have any a priori knowledge about how many pairs of complex-conjugate roots the equation has, use it. For example, if you know the equation always has only real roots, just take the real part of what polroots() gives you. Another option is to try to reduce the polynomial (mod p) for small primes p which do not divide any of the denominators. If a mod p factorization does not have any linear factors, neither does the given polynomial, and you're done. Each such mod p reduction and factorization can be done fairly quickly, but, alas I can offer no guarantee this method will work for any really small primes p. It also is of no help in finding a rational root if one exists. |
|
![]() |
![]() |
![]() |
#27 | |||
Aug 2006
3×1,987 Posts |
![]() Quote:
Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
#28 | |
Feb 2017
Nowhere
105016 Posts |
![]() Quote:
The method R. Gerbicz outlined for a poly with integer coefficients only requires computing real roots r to within 1/(2*a(n)) where a(n) is the lead coefficient, and then checking whether round(r*a(n))/a(n) is a root. That's still potentially a lot of real precision, along with the large coefficients, but that should be no problem. Since we're only dealing with quartics, this approach seems quite practicable. |
|
![]() |
![]() |
![]() |
#29 | |
Nov 2003
22×5×373 Posts |
![]() Quote:
that I don't understand. The OP seems to know at least some math since he/she is playing with elliptic curves. However, it puzzles me why he/she would ask for rational roots when he/she would know that the root is an integer........ It would be nice to know where the problem comes from. |
|
![]() |
![]() |
![]() |
#30 | ||
Feb 2017
Nowhere
10000010100002 Posts |
![]() Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#31 |
Nov 2003
22×5×373 Posts |
![]() |
![]() |
![]() |
![]() |
#32 |
Feb 2017
Nowhere
24×32×29 Posts |
![]()
Indeed. With my very limited knowledge of elliptic curves, only one possibility occurs to me: If the quartic f(x) has a rational zero r, then (0, r) is a ready-made rational point on the curve
y2 = f(x) which can be used to transform the curve into an elliptic curve y^2 = F(x), F cubic. If f(x) has no rational zero, there is no rational point (0, r) on the curve. Of course if f(x) has no rational zeroes, it is still possible AFAIK that y2 = f(x) could have some rational point with y <> 0. EDIT: Of course, with y <> 0 , there would be two rational points (y, r) and (-y, r) whereas with y = 0 you only get one ratonal point. Last fiddled with by Dr Sardonicus on 2020-03-21 at 18:13 Reason: As indicated |
![]() |
![]() |
![]() |
#33 |
Aug 2019
11 Posts |
![]() |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
reduce number of coefficient for polynomial selection with msieve on GPU | aein | Factoring | 3 | 2017-02-25 16:42 |
Don't fear the quartic | fivemack | Factoring | 6 | 2011-12-12 05:08 |
Spearman's rank correlation coefficient | Unregistered | Homework Help | 2 | 2009-03-03 19:56 |
Quartic: Parameters | R.D. Silverman | Factoring | 9 | 2009-02-18 23:24 |