HHC 2018 Programming Contests
|
10-06-2018, 06:38 PM
Post: #85
|
|||
|
|||
RE: HHC 2018 Programming Contests
(10-06-2018 03:57 PM)Gerson W. Barbosa Wrote: I was getting wrong biorhythm results until I noticed my angle mode was set to RAD. Please excuse my sloppiness. (10-06-2018 04:21 PM)3298 Wrote: Next discovery: exploding a sublist inside DOLIST (e.g. with an EVAL at the end of the program passed to DOLIST) causes all elements of the sublist to be added to the result list, no more flattening needed. That's something I didn't consider. Here's a program that uses it: Code: « Both your 1 + trick and Gerson's masking trick are nice but distract from the problem. Maybe that's only me but it took me a while to figure out why you had to do that. I tried to avoid this. Quote:There are dedicated units for angles, and when SIN gets an input tagged with one of these, the unit overrides the current angle mode. That's a nice solution I wasn't aware of. Of course we could also use Didier's 0 ACOS trick. Quote:And then there's a rare and kind of amusing bug. Though I was aware of the issue I didn't consider it a problem. It's also present in my HP-41CX program. Otherwise I would have needed to use a register to save the date. Kind regards Thomas |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)