Post Reply 
CC41 RPN Calculator
10-21-2023, 10:41 PM
Post: #20
RE: CC41 RPN Calculator
I'm replying to Allen's post in the HHC 2023 RPN Programming Contest thread and quoting the post as it appears in that thread.

Allen, thanks for using CC41 and sending feedback! It really helps me to find issues when other people use it.

(10-21-2023 07:26 PM)Allen Wrote:  Craig,
Thank you for the interesting CC41 program and congrats on the solution at the conference! I really love the "load and run this program on start"!! On the face that seems really handy, and I was preparing to do on the computer what I've been doing by hand the last week or so, until...

There are a few small behaviors that are somewhat different than a normal 41C would do:

Code:
> pi     x: 3.1416 y:50.0000 z:0.0000 t:32.0000 l:50.0000 a:
> cos     x: 0.9985 y:50.0000 z:0.0000 t:32.0000 l:3.1416 a:
> isg x   x: 49.9985 y:50.0000 z:0.0000 t:32.0000 l:3.1416 a:
> dec   x: 40.0000 y:50.0000 z:0.0000 t:32.0000 l:49.9985 a:

(this is correct for input of 50.0000, but 49.9985 should say "DATA ERROR" and leave x value unchanged?)

or
Code:
> pi     x: 3.1416 y:0.0000 z:41.0000 t:50.0000 l:49.0000 a:
> cos     x: 0.9985 y:0.0000 z:41.0000 t:50.0000 l:3.1416 a:
> isg x     x: 49.9985 y:0.0000 z:41.0000 t:50.0000 l:3.1416 a:
> int     x: 49.0000 y:0.0000 z:41.0000 t:50.0000 l:49.9985 a:
> dec     x: 0.0000 y:0.0000 z:41.0000 t:50.0000 l:49.0000 a:

(0.00 is not a valid oct to dec conversion for anything except input of 0.000 . should say "DATA ERROR" and leave x value unchanged?)

Neither of these x values would be allowed without error checking the OCT->DEC command for integer input not containing the '9' digit in the base10 number. the DEC->OCT command does not have the numerical restriction, but should check for integer input.
Code:
> 5.5     x: 5.5000 y:0.0000 z:0.0000 t:41.0000 l:49.0000 a:
> oct     x: 6.0000 y:0.0000 z:0.0000 t:41.0000 l:5.5000 a:

should also return error and leave x value unchanged?

I confess I've only looked at it for a few minutes, so if this is something clearly addressed in the nicely written manual (which I did search for notes on OCT and DEC behaviors) , it is my own lack of reading and I apologize in advance.

Allen, thanks for pointing out these differences in OCT and DEC behavior, I've added addressing these issues to my to do list for CC41.

Cheers,
Craig

Try CC41!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
CC41 RPN Calculator - Craig Bladow - 01-21-2023, 06:26 PM
RE: CC41 RPN Calculator - John Galt - 01-22-2023, 02:29 AM
RE: CC41 RPN Calculator - John Galt - 01-22-2023, 03:10 AM
RE: CC41 RPN Calculator - Craig Bladow - 01-22-2023, 03:22 AM
RE: CC41 RPN Calculator - John Galt - 01-22-2023, 03:36 AM
RE: CC41 RPN Calculator - Craig Bladow - 01-22-2023, 03:56 AM
RE: CC41 RPN Calculator - Craig Bladow - 01-23-2023, 01:12 AM
Suggestion - Namir - 01-23-2023, 12:57 PM
RE: CC41 RPN Calculator - Craig Bladow - 01-24-2023, 01:08 AM
RE: CC41 RPN Calculator - Namir - 01-24-2023, 12:01 PM
RE: CC41 RPN Calculator - Craig Bladow - 01-25-2023, 02:41 AM
RE: CC41 RPN Calculator - Craig Bladow - 01-31-2023, 01:04 AM
RE: CC41 RPN Calculator - Craig Bladow - 02-04-2023, 08:35 PM
RE: CC41 RPN Calculator - Craig Bladow - 05-06-2023, 04:42 PM
RE: CC41 RPN Calculator - nickapos - 05-07-2023, 03:51 AM
RE: CC41 RPN Calculator - Craig Bladow - 05-07-2023, 02:15 PM
RE: CC41 RPN Calculator - nickapos - 05-07-2023, 08:55 PM
RE: CC41 RPN Calculator - Craig Bladow - 06-05-2023, 10:20 PM
RE: CC41 RPN Calculator - Craig Bladow - 06-22-2023, 03:42 PM
RE: CC41 RPN Calculator - Craig Bladow - 10-21-2023 10:41 PM
RE: CC41 RPN Calculator - Craig Bladow - 11-15-2023, 10:48 PM
RE: CC41 RPN Calculator - KeithB - 11-16-2023, 10:33 PM
RE: CC41 RPN Calculator - Pierre - 11-27-2023, 09:48 PM
RE: CC41 RPN Calculator - Craig Bladow - 11-28-2023, 10:48 PM



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