0 Members and 1 Guest are viewing this topic.
:Y-(M<3:round(7fPart((int(23M/9)+D+4+Y+int(Ans/4)-int(Ans/ᴇ2)+int(Ans/400)-2(M≥3))/7
We should really change this into a "favorite routine" thread!Mine is a Day of Week calculator (Month, day, and year are M, D, and Y, respectively):Code: [Select]:Y-(M<3:round(7fPart((int(23M/9)+D+4+Y+int(Ans/4)-int(Ans/ᴇ2)+int(Ans/400)-2(M≥3))/7
Quote from: JWinslow23 on March 13, 2014, 01:49:04 pmWe should really change this into a "favorite routine" thread!Mine is a Day of Week calculator (Month, day, and year are M, D, and Y, respectively):Code: [Select]:Y-(M<3:round(7fPart((int(23M/9)+D+4+Y+int(Ans/4)-int(Ans/ᴇ2)+int(Ans/400)-2(M≥3))/7I'm pretty sure there are already some routine threads already.
On a side note, cumSum gotta have the worst TI-BASIC command name of all time (I already brought that NSFW joke up before, but yeah the name looks a bit questionable) Maybe TI thought that students using that calculator would not be familiar yet with that stuff so they didn't mind using a dirty command name
Quote from: DJ Omnimaga on March 16, 2014, 06:40:03 pmOn a side note, cumSum gotta have the worst TI-BASIC command name of all time (I already brought that NSFW joke up before, but yeah the name looks a bit questionable) Maybe TI thought that students using that calculator would not be familiar yet with that stuff so they didn't mind using a dirty command name Then again, how are you gonna shorten "cumulative" in another way?
Also, TI-Basic really needs first-class functions. And first-class everything, in fact. And the calculators need moar RAM.
Quote from: blue_bear_94 on March 16, 2014, 09:20:52 pmAlso, TI-Basic really needs first-class functions. And first-class everything, in fact. And the calculators need moar RAM.I would be ecstatic if somebody came out with a calculator that had LISP. A Scheme would be preferable (like Chichen or Racket), but any real LISP would be awesome.