mersenneforum.org (archive)mfaktXapp 1.1.4 released
 Register FAQ Search Today's Posts Mark Forums Read

2012-09-09, 16:18   #23
swl551

Aug 2012
New Hampshire

80210 Posts
Thx... I'm working at implementing it now

Quote:
 Originally Posted by chalsall That is correct.

I'll follow up later after I port the code an run some proofs on it.

2012-09-09, 17:02   #24
Dubslow

"Bunslow the Bold"
Jun 2011
40<A<43 -89<O<-88

11100001101012 Posts

Quote:
 Originally Posted by swl551 I assume your code is calculating only the GhzDaysFactorNotFound value portion?
The PrimeNet code that assigns credit for factors found is buggy; a found factor should be either less than or equal to the no factor credit amount. (Think about it: If I test 2^70-2^71 and don't find a factor, that's the exact same amount of work as testing 2^70-2^71 and finding a factor.)

Thus you can use that formula for either case, unless your app can detect when a factor is found but the bit-level search was not complete.

 2012-09-09, 17:10 #25 swl551     Aug 2012 New Hampshire 2·401 Posts chasall's perl to c# public static double CalcGHDZ(ulong exp, int from, int to) { double GHZdays=0; for(int i=from+1;i <= to;i++) { GHZdays += (0.00707 * 2.4) * (Math.Pow(2, i - 48)) * 1680 / exp; } return (GHZdays); }
 2012-09-09, 18:46 #26 swl551     Aug 2012 New Hampshire 2·401 Posts 1.3.5 beta available. GHZ days calc now included This is a beta releaes. Be sure to have 1.2.6 fully up and running before replacing the mfaktXApp.exe with this beta version. Ghz Days calculation converted from chalsall's perl implementation. THANK YOU!!! ----- perl from chalsall sub CalculateGHzDaysTF { my ($Exp,$From, $To) = @_; my ($GHzDays, $Cnt);$GHzDays = 0; for ($Cnt =$From + 1; $Cnt <=$To; $Cnt++) {$GHzDays += (0.00707 * 2.4) * (2 ** ($Cnt - 48)) * 1680 /$Exp; } return \$GHzDays; } -- converted to C# by swl551 public static double CalcGHDZ(int exp, int from, int to) { double GHZdays=0; for(int i=from+1;i <= to;i++) { GHZdays += (0.00707 * 2.4) * (Math.Pow(2, i - 48)) * 1680 / exp; } return GHZdays; } -------------------------------------------- Get from SkyDrive http://sdrv.ms/QsaP9Y
 2012-09-09, 19:11 #27 kladner     "Kieren, ktony" Jul 2011 100101010001102 Posts Hey Scott, I just wanted to say thanks, again. The occasion is that I finally straightened out the Launch and Ctl-C functions. The problems were purely from my own inattentiveness regarding paths and exact program names. This app has continued to improve in its convenience since you first put it out. I really appreciate your work. EDIT: I should add that the Duplicate checker is an immense time saver. Last fiddled with by kladner on 2012-09-09 at 19:46
2012-09-10, 12:02   #28
swl551

Aug 2012
New Hampshire

2·401 Posts

Quote:
 Originally Posted by kladner Hey Scott, I just wanted to say thanks, again. The occasion is that I finally straightened out the Launch and Ctl-C functions. The problems were purely from my own inattentiveness regarding paths and exact program names. This app has continued to improve in its convenience since you first put it out. I really appreciate your work. EDIT: I should add that the Duplicate checker is an immense time saver.

thx.

 2012-09-10, 13:49 #29 kladner     "Kieren, ktony" Jul 2011 2×13×367 Posts Feature Request? Would it be possible to augment the Duplicate Finder to allow searching for a particular exponent across several worktodo files? That is, if an exponent is present, show which worktodo file it is in, (and otherwise return "Not Found")? Thanks! Last fiddled with by kladner on 2012-09-10 at 13:50
2012-09-10, 16:24   #30
swl551

Aug 2012
New Hampshire

2·401 Posts
Duplicate factors test

Quote:
 Originally Posted by kladner Would it be possible to augment the Duplicate Finder to allow searching for a particular exponent across several worktodo files? That is, if an exponent is present, show which worktodo file it is in, (and otherwise return "Not Found")? Thanks!
I added the "check for duplicates" to help me test my "assign work" and "balance work" features. If you have ongoing duplicate issues to the point where you actually know the factor to look for I'd have to guess you are hand editing worktodo.txt files. MfaktXapp is supposed to replace the need to hand edit files.

So, the real question is why are there duplicates and can mfaktXapp do something more to assist in managing workToDo.txt files?

2012-09-10, 16:35   #31

"Kieren, ktony"
Jul 2011

2×13×367 Posts

Quote:
 Originally Posted by swl551 I added the "check for duplicates" to help me test my "assign work" and "balance work" features. If you have ongoing duplicate issues to the point where you actually know the factor to look for I'd have to guess you are hand editing worktodo.txt files. MfaktXapp is supposed to replace the need to hand edit files. So, the real question is why are there duplicates and can mfaktXapp do something more to assist in managing workToDo.txt files?
Sorry. I did not make myself clear. The program already says where duplicates are. However, I track the age of assignments. Sometimes, older ones turn up rather far down in worktodo. I suppose that this can happen when they are preceded by several longer-running exponents. I only thought that the same general function could provide the location of a particular exponent, so that I could move it up the list. (Duplicates are not a common problem, but can happen when rearranging things. This probably comes from an accidental Ctl-C, instead of Ctl-X.)

2012-09-10, 16:51   #32
swl551

Aug 2012
New Hampshire

2×401 Posts
Ok.

Quote:
 Originally Posted by kladner Sorry. I did not make myself clear. The program already says where duplicates are. However, I track the age of assignments. Sometimes, older ones turn up rather far down in worktodo. I suppose that this can happen when they are preceded by several longer-running exponents. I only thought that the same general function could provide the location of a particular exponent, so that I could move it up the list. (Duplicates are not a common problem, but can happen when rearranging things. This probably comes from an accidental Ctl-C, instead of Ctl-X.)
Now that sounds like a great feature. Search on EXp and it will report not_found or if found report file_name, position_in_file_from_top

2012-09-10, 18:19   #33

"Kieren, ktony"
Jul 2011

2·13·367 Posts

Quote:
 Originally Posted by swl551 Now that sounds like a great feature. Search on EXp and it will report not_found or if found report file_name, position_in_file_from_top
And your addition is something I had not thought of. I only hoped to know which of 4 worktodo's to look in. Knowing where in the file would be great!

Thanks again for everything.

 Similar Threads Thread Thread Starter Forum Replies Last Post swl551 MISFIT 584 2013-03-19 20:13 swl551 MISFIT 125 2012-11-09 14:50 D_unreg Information & Answers 4 2009-02-18 12:00 em99010pepe Octoproth Search 161 2007-06-08 21:31 Xyzzy Lounge 11 2003-03-31 20:42

All times are UTC. The time now is 11:11.

Thu Apr 9 11:11:13 UTC 2020 up 15 days, 8:44, 1 user, load averages: 1.49, 1.33, 1.30