Hello Valentin,
I have noticed these two discrepancies between your HP-15C and HP-71B programs, when checking against the HP-200LX:
N HP-15C HP-200LX HP-71BThis suggests the HP-15C fails for N=44315509 and the HP-71B fails for N=54336595.44315509 319615034 319615033 319615033
54336595 396700506 396700505 396700506
The 200LX equation is the following:
NDF=INT(N*LOG(N/EXP(1))+LOG(2*PI*N)/2+1)On the HP-200LX, the second result is 396700505.9999999. It appears to be one of the cases the guard digits are not enough... This should be checked with more digits, though. Apparently, these are the only two discrepancies in the range [1..100,000,000].
Best regards,
Gerson.
Edited: 22 Feb 2007, 6:11 p.m.