Post Reply 
Friday the 13th on 17bii Solver
01-14-2017, 09:12 PM
Post: #7
RE: Friday the 13th on 17bii Solver
(01-14-2017 07:07 PM)mfleming Wrote:  
(01-13-2017 07:37 PM)Don Shepherd Wrote:  \(\Sigma\)(M:1:12:1:0xL(A:IDIV(14-M:12))xL(Y:YEAR-G(A))xL(MM:M+12xA-2)+IF(MOD(DOM+G(Y)+IDIV(G(Y):4)-IDIV(G(Y):100)+IDIV(G(Y):400)+IDIV(31xG(MM):12):7)=DAY:1:0))-ANS

Small suggested edit: For the second reference to variable 'A' in the expression

L(MM:M+12xA-2)

Change the direct reference of variable 'A' to G(A)

L(MM:M+12xG(A)-2)

so that the variable 'A' does not appear in the menu.

Very neat program! Someday I hope I'll master this programming language. Makes obfuscated C look like child's play Wink

Yeah, you are right, I missed that one. It was right on my actual calculator else the A would show up in the menu which I don't want, as you mentioned.

Good catch, I'll change the original post to reflect this.

thanks
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Friday the 13th on 17bii Solver - Don Shepherd - 01-14-2017 09:12 PM



User(s) browsing this thread: 1 Guest(s)