Post Reply 
(50g) Fun with Farey sequences
06-26-2015, 11:19 PM
Post: #12
RE: (50g) Fun with Farey sequences
(06-25-2015 05:46 AM)Gerald H Wrote:  #/ is bint division, stack diagram

Code:

bint a    bint remainder(a/b)
bint b -> bint quotient(a/b)

From "Programming in System RPL" by Eduardo M Kalinowski and Carsten Dominik:
Code:
Addr.  Name   Description
303E9  %/     ( % %' → %/%' )
303D3  %%/    ( %% %%' → %%/%%' )
03EF7  #/     ( # #' → #r #q )

Thus #/ is what is called /MOD in Forth:
Code:
/MOD     ( n1 n2 -- rem quot )     Divides. Returns the remainder and quotient.

Who would think that this was a good idea to use #/ instead?

Thanks for the explanation of ^NDXFex. I assumed something like this but didn't know where to look it up.

Quote:Thanks for your interest.

I try my best to keep up with your production of programs. But I must admit that I'm not fluent in System RPL. Thus I'm a slow reader.

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


Messages In This Thread
(50g) Fun with Farey sequences - Tugdual - 06-15-2015, 08:37 PM
RE: (50g) Fun with Farey sequences - Thomas Klemm - 06-26-2015 11:19 PM



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