20070821, 23:01  #1 
Aug 2002
61×137 Posts 
Formula entry enhancement?
We like how in GMPECM you can tell it to use a formula, instead of having to use the decimal expansion like it used to be.
What we think would be cool is if the program would show the first 3 digits and then the last 3 digits of the number, or some arbitrary number of digits, to verify that the formula is typed in properly. (In our case we use bc to make sure the number is right but we have no idea if what GMPECM is using is right, other than the number of digits listed in the output.) For example, one of the lists we have has the first few digits printed, so you are pretty sure you have the right thing typed in if those digits match. Since we sometimes have to divide out 3 or more huge factors the chance of us typing the number wrong is pretty good, since we can barely type to begin with. So maybe the output would look like this: Code:
GMPECM 6.1.1 [powered by GMP 4.2.1] [ECM] Input number is (12^2291)/841357 (242 digits) (161...843) Using B1=850000000, B2=15892628251516, polynomial Dickson(30), sigma=2176429102 
20070822, 11:59  #2  
Bamboozled!
"πΊππ·π·π"
May 2003
Down not across
25423_{8} Posts 
Quote:
Paul 

20070822, 12:17  #3 
Oct 2004
Austria
2×17×73 Posts 
I agree. And it would be even better if the resulting number is checked if it's an integer:
A typo in one of the (long) factors which are to be divided out before ECMing, the parser cuts off the digits behind the decimal point after the division, and then I wonder why the number is divilible by things like 2^{4}*3*5Β²*17 (or even worse, if it is NOT divisible by such small stuff and the first "factor" is e.g. a p37 which looks quite ok, but in fact is nonsense....) Last fiddled with by Andi47 on 20070822 at 12:17 
20070822, 14:20  #4 
Nov 2003
7460_{10} Posts 
I disagree. You are putting the onus on the GMP authors to provide
a formula interpreter for (possibly) a very large set of different formulae. Instead, if a particular user has some fomula he wants evaluated, let HIM write the code to evaluate the formula and then have that code call GMPECM with the desired number. Are ALL of the ECM users too lazy to be bothered writing even a little bit of code???? 
20070822, 15:24  #5 
Jun 2003
2·3·5·173 Posts 
The formula interpreter is already there in gmpecm. OP was requesting for a feedback display of the digits so that the user can confirm that the formula was correctly entered.

20070822, 19:54  #6  
Bamboozled!
"πΊππ·π·π"
May 2003
Down not across
11,027 Posts 
Quote:
Given that the code is there already, an extremely simple validator for its input would appear to be well worth the investment required to write that validator  especially as the code to produce the decimal representation is also present in ECM already. Paul 

Thread Tools  
Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Possible P1 Entry Example Error  Jayder  mersennewiki  7  20130304 04:52 
Enhancement request  chris2be8  GMPECM  0  20091208 18:19 
Bug? Feature? AND/OR Enhancement Request?  petrw1  PrimeNet  2  20071016 19:13 
wiki entry  delta_t  PSearch  2  20060521 07:05 
Client Enhancement Suggestion(s)  Reboot It  Software  34  20030529 11:31 