Post Reply 
Collaborative collection of useful userRPL snippets
01-12-2019, 09:43 PM
Post: #19
RE: Collaborative collection of useful userRPL snippets
please consider this snippet, for an arbitrary base logarithm:

Code:
logyx: LOG SWAP LOG /

It uses the fact that logb(x) (log x to base b) is == loga(x) / loga(b), where a is any base.

I won't add to the wiki myself, since I don't quite get the syntax, and haven't tried it on my 50g yet, only as the equivalent RPN on my DM42.

thanks.

Cambridge, UK
41CL/DM41X 12/15C/16C DM15/16 17B/II/II+ 28S 42S/DM42 32SII 48GX 50g 35s WP34S PrimeG2 WP43S/pilot
Casio, Rockwell 18R
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Collaborative collection of useful userRPL snippets - cdmackay - 01-12-2019 09:43 PM



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