![]() |
|
|
#12 |
|
May 2008
3×5×73 Posts |
If this code is anything to go by (posted by George some weeks ago):
Code:
// P-1 - no factor
// timing / 86400 * (1.5 * B1 + 0.05 * B2)
// P-1 - factor found in stage 2
// timing / 86400 * (1.5 * B1 + 0.05 * B2)
// P-1 - factor found in stage 1, B2 = 0
// timing / 86400 * (1.5 * B1)
function credit_cpu_PM1_factoring( $exponent, $fftlen, $B1, $B2 )
{
$timing = credit_get_FFT_timing( $exponent, $fftlen );
return ( $timing * ( 1.5 * $B1 + 0.05 * $B2) / 86400.0 );
}
BUT now that the function is calculating B2-B1 then it must check for the condition B2==0, or else you'll actually end up being under-credited for not doing B2... George? |
|
|
|
|
|
#13 |
|
Apr 2007
Spessart/Germany
2×83 Posts |
@ jrk: if you look in the 'factoring limits' page ('result queries') you'll see that B2 always is set to B1 if no stage 2 is done, the same happens if you look up such a result in your own results page of your acc.
I agree with Jacob and garo, the boundaries of already done P-1 work should be subtractet in the formula. But if Old_B1>B1 then (B1 - Old_B1) should be set to 0 or you get CPU-Credit subtractet. Same if Old_B2>B2. best regards, Matthias |
|
|
|
|
|
#14 |
|
P90 years forever!
Aug 2002
Yeehaw, FL
205716 Posts |
|
|
|
|
|
|
#15 |
|
May 2008
3·5·73 Posts |
Ok thanks
|
|
|
|
|
|
#16 | |
|
May 2008
109510 Posts |
Quote:
If Old_B1 = Old_B2 = 100e3, no stage 2 Then someone does B1 = B2 = 500e3, no stage 2. This should be credited for the difference in B1 values. That's easy (I think?). But what if, instead: Old_B1 = 100e3, Old_B2 = 2e6, this time stage 2 was done before And someone does B1 = B2 = 500e3, no stage 2. Should this receive the same credit for the B1 difference as before? Arguably it is not as useful. And if they do B1 = 500e3, B2=2e6, no difference in B2 but the new stage 2 work should receive some credit since the B1 was extended, and that is more useful than just extending B1 without redoing the stage 2. Things to ponder. Last fiddled with by jrk on 2009-01-28 at 04:54 Reason: oops, I typo'd the B2 values... |
|
|
|
|
|
|
#17 |
|
May 2008
3·5·73 Posts |
I typo'd the B2 numbers in the post above. Fixed now.
|
|
|
|
|
|
#18 | ||
|
"Jacob"
Sep 2006
Brussels, Belgium
2·977 Posts |
Quote:
Quote:
Anyway the new PHP code is clearer :-) Jacob |
||
|
|
|
|
|
#19 | ||
|
May 2008
3×5×73 Posts |
I made no mention of negative credit. However you decide to calculate it, a negative credit would clearly be a bug in logic.
Quote:
Quote:
Last fiddled with by jrk on 2009-01-28 at 07:05 |
||
|
|
|
|
|
#20 | ||
|
Apr 2007
Spessart/Germany
2×83 Posts |
Hello Jayson,
Quote:
Quote:
Atm I think about this problem: Should a person who is redoing a P-1 completely new get (only) the same CPU-Credit for this work as a person who is redoing this P-1 with an already stored save-file? best regards, Matthias |
||
|
|
|
|
|
#21 | |
|
Jan 2009
158 Posts |
Quote:
|
|
|
|
|
|
|
#22 |
|
Jan 2009
13 Posts |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Interesting formulæ | Uncwilly | Lounge | 29 | 2013-05-05 16:12 |
| Fibonacci Formula | MattcAnderson | Math | 7 | 2013-01-14 23:29 |
| prime formula | meeztamike | Miscellaneous Math | 11 | 2010-07-18 04:13 |
| New LLT formula | hoca | Math | 7 | 2007-03-05 17:41 |
| General formula | pacionet | Miscellaneous Math | 15 | 2005-12-08 08:00 |