Post Reply 
Proof of X≤Y inverse to X˃Y
09-02-2018, 05:11 PM (This post was last modified: 09-02-2018 05:25 PM by Dieter.)
Post: #16
RE: Proof of X≤Y inverse to X˃Y
(09-02-2018 02:40 PM)Gamo Wrote:  I did try the single X≤Y and result is the same.

Yes.

More precisely:
If you repeat the same test n times, the result is
– the same as one single test if n is odd
– always true if n is even, i.e. nothing is tested at all.

(09-02-2018 02:40 PM)Gamo Wrote:  With X≤Y and X=0 together work on the same program that stop at 11.

No.
Try it and see what you get.

Code:
01 CLX
02 STO 1
03 1
04 STO+1
05 RCL 1
06 PSE
07  1
08  0
09 X<>Y
10 X≤Y?     ' since X is never zero
11 X=0?     ' line 10 + 11 are equivalent to "X>Y?"
12 GTO 03
13 GTO 00

Note: R1 is cleared on start, so no Clear REG is required.

What's the final number?

[  ]  1
[  ]  10
[  ]  11

Check the correct answer. :-)

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Proof of X≤Y inverse to X˃Y - Gamo - 09-01-2018, 08:40 AM
RE: Proof of X≤Y inverse to X˃Y - Gamo - 09-01-2018, 12:57 PM
RE: Proof of X≤Y inverse to X˃Y - Gene - 09-01-2018, 08:27 PM
RE: Proof of X≤Y inverse to X˃Y - Gene - 09-01-2018, 02:04 PM
RE: Proof of X≤Y inverse to X˃Y - Gamo - 09-02-2018, 01:29 AM
RE: Proof of X≤Y inverse to X˃Y - Gamo - 09-02-2018, 01:52 PM
RE: Proof of X≤Y inverse to X˃Y - Gamo - 09-02-2018, 02:40 PM
RE: Proof of X≤Y inverse to X˃Y - Dieter - 09-02-2018 05:11 PM



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