Post Reply 
NEIGHBOR function in RPL
06-06-2015, 03:41 PM (This post was last modified: 06-06-2015 05:45 PM by Gerald H.)
Post: #8
RE: NEIGHBOR function in RPL
Here my attempt, please be critical - just don't use 0 for input.

Input is one real number, output is the two neighbours.

Code:
DCUT

« DUP SIGN SWAP DUP
NOV 3 PICK * UNROT
NUN *
»

NOV

« DUP XPON ALOG
SWAP MANT -11. ALOG
+ *
»

NUN

« DUP XPON ALOG
SWAP MANT -11. OVER
1 == - ALOG - *
»
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
NEIGHBOR function in RPL - Joe Horn - 06-05-2015, 09:03 PM
RE: NEIGHBOR function in RPL - Gerald H - 06-06-2015, 09:17 AM
RE: NEIGHBOR function in RPL - Werner - 06-06-2015, 12:55 PM
RE: NEIGHBOR function in RPL - Gerald H - 06-06-2015, 03:03 PM
RE: NEIGHBOR function in RPL - Werner - 06-06-2015, 03:30 PM
RE: NEIGHBOR function in RPL - Gerald H - 06-06-2015, 03:45 PM
RE: NEIGHBOR function in RPL - Gerald H - 06-06-2015 03:41 PM
RE: NEIGHBOR function in RPL - Gerald H - 06-06-2015, 03:50 PM



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