Post Reply 
12C vs 11C program, 11C not working
12-18-2018, 11:55 AM (This post was last modified: 12-18-2018 02:42 PM by calcphil12c11c.)
Post: #12
RE: 12C vs 11C program, 11C not working
(12-18-2018 08:50 AM)Dieter Wrote:  
(12-17-2018 11:59 PM)calcphil12c11c Wrote:  Thank you again. I rewrote your program for the 12C as it does not have the x<0.
Here it is and it works perfect.

Great. You can remove step 11 and 12 since there still is a zero left in Y from the first x<0? test.
You may insert x=0? GTO 00 as the first lines – this way the program also works for zero input.
And finally you should replace the last two lines with GTO 00. This resets the program to the start after each calculation and you can run it again with a simple R/S just as well.

Dieter

I think you want this.

01 g x=0
02 g GTO 00
03 0
04 x <> y
05 g x less than or equal y
06 1/x
07 3
08 .
09 7
10 8
11 5
12 X
13 g x less than or equal y
14 1/x
15 CHS
16 g GTO 00


And yes it works! Again, thank you!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: 12C vs 11C program, 11C not working - calcphil12c11c - 12-18-2018 11:55 AM



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