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
 calcphil12c11c Junior Member Posts: 12 Joined: Dec 2018
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!
 « Next Oldest | Next Newest »

 Messages In This Thread 12C vs 11C program, 11C not working - calcphil12c11c - 12-16-2018, 03:07 PM RE: 12C vs 11C program, 11C not working - Dieter - 12-16-2018, 10:03 PM RE: 12C vs 11C program, 11C not working - calcphil12c11c - 12-16-2018, 11:31 PM RE: 12C vs 11C program, 11C not working - Dieter - 12-17-2018, 08:39 AM RE: 12C vs 11C program, 11C not working - Thomas Klemm - 12-17-2018, 05:11 AM RE: 12C vs 11C program, 11C not working - calcphil12c11c - 12-17-2018, 12:13 PM RE: 12C vs 11C program, 11C not working - Dieter - 12-17-2018, 07:42 PM RE: 12C vs 11C program, 11C not working - ijabbott - 12-17-2018, 08:38 AM RE: 12C vs 11C program, 11C not working - calcphil12c11c - 12-17-2018, 09:04 PM RE: 12C vs 11C program, 11C not working - calcphil12c11c - 12-17-2018, 11:59 PM RE: 12C vs 11C program, 11C not working - Dieter - 12-18-2018, 08:50 AM RE: 12C vs 11C program, 11C not working - calcphil12c11c - 12-18-2018 11:55 AM RE: 12C vs 11C program, 11C not working - calcphil12c11c - 01-09-2019, 04:19 AM

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