![]() |
|
|
#78 | |
|
May 2007
Kansas; USA
101·103 Posts |
Quote:
|
|
|
|
|
|
|
#79 | |
|
Sep 2006
11·17 Posts |
Quote:
Thank you for the explanation.
|
|
|
|
|
|
|
#80 |
|
May 2007
Kansas; USA
242438 Posts |
Mark,
I am getting quite a few roundoff errors in PFGW 3.2.7. I did quite a bit of extra comparison testing between versions 3.2.3 and 3.2.7 in an attempt to help you ultimately eliminate the errors. Here are some roundoff errors that I got in version 3.2.3 (not originally tested in 3.2.7): 1780*112^19007+1 1696*112^19080+1 1780*112^19118+1 1696*112^19136+1 1696*112^19172+1 I subsequently tested these in 3.2.7 and there were no roundoff errors. That's a good thing. ![]() Here are some roundoff errors that I got in version 3.2.7 (not originally tested in 3.2.3): 1379*138^9373+1 9000*93^4798+1 9844*93^6369+1 8224*93^9451+1 7868*93^9500+1 6748*93^9571+1 6748*93^9603+1 344*161^15982-1 378*161^18855-1 I subsequently tested these in 3.2.3 and found that they all had the same error EXCEPT one; the very last one: 378*161^18855-1, which tested correctly. That's not a good thing. confused:![]() The first test where 3.2.7 corrected all of the 3.2.3 errors is what I would expect. I was taken aback by the second test. An error that occurred in 3.2.7 did NOT occur in 3.2.3! My question is: Does this mean that new roundoff errors are being introduced? I've attached many different files from my testing. Naming definitions: input-errs-3.2.x = Input files of tests with the PFGW version # that produced errors. pfgw.out-3.2.x-errs = The pfgw.out (regular results) file for the specified PFGW version #. pfgw.out-3.2.x-errs-run-3.2.y = The pfgw.out file for errors produced in 3.2.x ran in 3.2.y. [Example: pfgw.out-3.2.3-errs-run-3.2.7 = These were originally 3.2.3 errors but I subsequently ran them in 3.2.7 to verify that the errors were corrected. (In this case, since it's a newer PFGW version, it correctly came up with no errors. That is it shows that all tests are composite.)] pfgw_err-3.2.x-errs = Self-explanatory. The original pfgw_err file where the errors came to light. The major concern is file pfgw.out-3.2.7-errs-run-3.2.3.txt. This is the regular resutls file for 3.2.7 errors ran in version 3.2.3. If you look at the very last line, you'll see: 378*161^18855-1 is composite: RES64: [6221E6A7DC82F65B] (103.0717s+0.0029s) This tells me that potentially a new error was introduced in version 3.2.7 that wasn't in 3.2.3. One final note: When I used the -a1 switch on all of these, it ran a good test and showed them all to be composite. I'll download 3.3.0 in a little while and start using it for testing. I won't be looking for roundoff errors...just that it runs fine. If so, I'll update the 1st post here with both the Windows and Linux versions of it. In a little while, I'll also look to start updating the new bases script for the scripting language updates introduced in 3.2.7. Possible suggestion: If there is a roundoff error, would it make sense to have PFGW automatically run the same test a 2nd time? Perhaps on the 2nd test, have it run the same code that is executed when the -a1 switch is used. Question: What about always testing using the -a1 switch? Would that make the tests take much longer? Gary Last fiddled with by gd_barnes on 2010-01-20 at 07:27 |
|
|
|
|
|
#81 |
|
Just call me Henry
"David"
Sep 2007
Cambridge (GMT/BST)
5,881 Posts |
|
|
|
|
|
|
#82 |
|
May 2007
Kansas; USA
101·103 Posts |
lol, I just downloaded 3.3.0 and read the release notes. You did exactly what I suggested in the last para. on the previous post. I subsequently reran the 3.2.7 errors through it and they all tested great!
The cool part is that the error didn't show up in pfgw.out. It's nice to have a good clean results file. Obviously you can ignore my previous post. I thought about deleting it but I figured it might be good for reference if any problems crop up in the future. By by roundoff errors (well, at least on a 2nd test anyway). Nice work! ![]() Gary |
|
|
|
|
|
#83 |
|
May 2007
Kansas; USA
101×103 Posts |
|
|
|
|
|
|
#84 |
|
May 2007
Kansas; USA
101·103 Posts |
There seems to be a small quirk/bug introduced with PFGW 3.2.7:
It appears that PFGW is automatically running an extra primality test on small tests that are found to be trivially prime when using the -f factoring switch. Here is an example from the pfgw.out file: 6*172^1+1 is trivially prime! 6*172^1+1 trivially factors prime!: 1033 While I don't think this causes a problem, per se, it makes for very irritating gui screen output. I like to keep the "output verbose screen" set to "screen normal" to see PRP's as they are kicked out so that I can see at a glance where testing is at. But with this issue, 100's of messages continue scrolling out that show "xx*xx^xx+1 is trivially prime!" making it difficult to see where it is at and slowing down processing slightly. Can this be fixed? I confirmed that the issue did not exist in version 3.2.3. I've just about finished my new script changes for 3.2.7/3.3.0 and thought I had a bug in my code for quite a while. One more thing that has been a small issue since release 3.1.0: When you do a mouse-over of WinPFGW.exe, it still shows versioin 3.1.0.0 in the little white box. I didn't check if it does that in the Linux version. Gary Last fiddled with by gd_barnes on 2010-01-20 at 13:03 |
|
|
|
|
|
#85 | |
|
"Mark"
Apr 2003
Between here and the
24·397 Posts |
Quote:
The last issue was fixed in 3.3.0. Regarding the roundoff/sumout errors. I modified PFGW to use an irrational FFT because there were cases that tests would not trigger a roundoff/sumout error, yet would not have correct results unless using the -a1 switch. This was a recommendation from George. This results in some tests getting roundoff/sumout errors that did not get them before (even though they had correct output without -a1 before). The more important thing is guaranteeing that the if no error is triggered, then one knows that the output is correct. BTW, -a1 will slow the test down by a few percent. It can vary from number to number based upon the size of the number being tested. Last fiddled with by rogue on 2010-01-20 at 13:50 |
|
|
|
|
|
|
#86 | |
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
17·251 Posts |
Quote:
Code:
PFGW Version 3.3.1.20100111.Win_Dev [GWNUM 25.13] Primality testing 800157112*3^64-1 [N+1, Brillhart-Lehmer-Selfridge] Running N+1 test using discriminant 7, base 1+sqrt(7) Special modular reduction using generic reduction x87 FFT length 32 on 800157112*3^64-1 800157112*3^64-1 is composite (0.0318s+0.0001s) Primality testing 800829524*3^47-1 [N+1, Brillhart-Lehmer-Selfridge] Running N+1 test using discriminant 5, base 1+sqrt(5) Special modular reduction using generic reduction x87 FFT length 32 on 800829524*3^47-1 800829524*3^47-1 is composite (0.0021s+0.0001s) Primality testing 801245282*3^50-1 [N+1, Brillhart-Lehmer-Selfridge] Running N+1 test using discriminant 3, base 3+sqrt(3) Special modular reduction using generic reduction x87 FFT length 32 on 801245282*3^50-1 801245282*3^50-1 is composite (4.9667s+0.0001s) Primality testing 802324048*3^490-1 [N+1, Brillhart-Lehmer-Selfridge] Running N+1 test using discriminant 17, base 1+sqrt(17) Special modular reduction using zero-padded FFT length 80 on 802324048*3^490-1 802324048*3^490-1 is composite (0.0154s+0.0001s) Primality testing 802829672*3^59-1 [N+1, Brillhart-Lehmer-Selfridge] Running N+1 test using discriminant 5, base 1+sqrt(5) Special modular reduction using generic reduction x87 FFT length 32 on 802829672*3^59-1 802829672*3^59-1 is composite (0.0023s+0.0001s) Primality testing 804875072*3^71-1 [N+1, Brillhart-Lehmer-Selfridge] Running N+1 test using discriminant 5, base 1+sqrt(5) Special modular reduction using generic reduction x87 FFT length 32 on 804875072*3^71-1 804875072*3^71-1 is composite (0.0023s+0.0001s) Done. |
|
|
|
|
|
|
#87 | |
|
"Mark"
Apr 2003
Between here and the
24·397 Posts |
Quote:
|
|
|
|
|
|
|
#88 | |
|
Account Deleted
"Tim Sorbera"
Aug 2006
San Antonio, TX USA
102538 Posts |
Quote:
|
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Prime Gap Search latest version of the c code | pinhodecarlos | Prime Gap Searches | 170 | 2019-12-10 19:33 |
| where can I download the latest version of GMP-ECM | aaa120 | GMP-ECM | 2 | 2008-10-31 14:28 |
| Where can I download the latest version of primo? | aaa120 | Software | 7 | 2008-10-27 06:28 |
| Is 23.8.1 the latest Version of Prime95? | Bundu | Software | 1 | 2004-11-03 23:18 |
| Latest version? | [CZ]Pegas | Software | 3 | 2002-08-23 17:05 |