Proof of X≤Y inverse to X˃Y
|
09-01-2018, 08:40 AM
(This post was last modified: 09-01-2018 08:52 AM by Gamo.)
Post: #1
|
|||
|
|||
Proof of X≤Y inverse to X˃Y
HP-12C only got two conditional test of [X≤Y] and [X=0]
Recently I try to do the inverse of the [X≤Y] to [X˃Y] To get [X˃Y] this must use [X≤Y] three times. Here is the simple program to make this proof. Case 1. [X≤Y] If true result show 101 If false result show 1 Case 2. [X˃Y] If true result show 101 If false result show 1 101 for True 1 for False Procedure: Y [ENTER] X [R/S] ---> Case 1 Y [ENTER] X [R/S] ---> Case 2 Example: Y stack is 100 and X stack is 100 100 [ENTER] 100 [R/S] display 101 // [X≤Y] 100 ≤ 100 that is TRUE 100 [ENTER] 100 [R/S] display 1 // [X˃Y] 100 ˃ 100 that is FALSE Y stack is 100 and X stack is 101 100 [ENTER] 101 [R/S] display 1 // [X≤Y] 101 ≤ 100 that is FALSE 100 [ENTER] 101 [R/S] display 101 //[X˃Y] 101 ˃ 100 that is TRUE Program: Conditional Test comparison between [X≤Y] and [X˃Y] Code:
This is just a curiosity. Is this really work as show in these example? Gamo |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)