T.R | Title | User | Personal Name | Date | Lines |
---|
1385.1 | how about this one | VMSDEV::HALLYB | The Smart Money was on Goliath | Mon Feb 11 1991 13:17 | 7 |
| Can the 4 digits be combined, as in:
41
3
2 ?
John
|
1385.2 | | JARETH::EDP | Always mount a scratch monkey. | Mon Feb 11 1991 13:23 | 11 |
| The C expression in .0 would seem to be flawed since order of:
the decrement of y in y-- and
the use of the value of y in its other apperaances
is not guaranteed. Actually, I might guess "y--" should be "y-1":
(23*m/9+d+4+(m<3?y-1:y-2)+y/4-y/100+y/400)%7
-- edp
|
1385.3 | Well... | CIVAGE::LYNN | Lynn Yarbrough @WNP DTN 427-5663 | Mon Feb 11 1991 15:15 | 8 |
| Re .1: Yes, 2^(3^41) is 3rd or 4th on the list.
Re .2: Assuming the order of operations is left-to-right without
'optimizing' the order, it works. In fact, the formula *depends* on the
decrementation occuring at that specific point in the expression, and
thus affecting the remaining subexpression evaluations. In this respect,
it's something like an APL one-liner, in which assignments to variables in
the midst of an expression are common.
|
1385.5 | (10/3)^(5^10000) | HERON::BUCHANAN | Holdfast is the only dog, my duck. | Mon Feb 11 1991 16:26 | 13 |
| >Re .1: Yes, 2^(3^41) is 3rd or 4th on the list.
Well, my guess is:
(.3)^(-((.2)^(-((.1)^(-4)))))
= (3/10)^(-((1/5)^(-((1/10)^(-4)))))
= (10/3)^(5^(10^4))
Any good? :-)
Regards,
Andrew.
|