Post Reply 
ln() vs. log()
04-25-2016, 06:38 AM (This post was last modified: 04-25-2016 06:39 AM by Dieter.)
Post: #24
RE: ln() vs. log()
(04-24-2016 02:38 PM)Marcus von Cube Wrote:  
(04-17-2016 10:06 PM)Don Shepherd Wrote:  Interestingly, the original Dartmouth BASIC had log() but it was really ln().

In Casio BASIC as implemented on their pocket computers there were two variants:

LN and LOG for the FX series (e. g. FX-850)
LOG and LGT for the newer PB series (e. g. PB-1000 but not the older PB-100)

I never understood why there is no common unambigous declaration of the logarithm function(s). In most programming languages, "log" returns the natural logarithm ln(x) while on most calculators this is correctly called "ln". Here, "log" usually is the base-10 logarithm, i.e. lg(x). Excel is a special case: in a worksheet log is the base-10 logarithm, while in a VBA function it's ln(x). #-) As far as I can see the WP34s is the only calculator that uses correct designations: ln, lg, ld and finally logxy for a base-x logarithm.

(04-24-2016 02:38 PM)Marcus von Cube Wrote:  I had a hard time writing my BASIC to WAV translators (CASette I/O Utilities) in a way to handle both variants correctly.

?!? – what exactly was the problem?

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


Messages In This Thread
ln() vs. log() - Don Shepherd - 04-17-2016, 10:06 PM
RE: ln() vs. log() - Massimo Gnerucci - 04-17-2016, 10:15 PM
RE: ln() vs. log() - Han - 04-17-2016, 10:19 PM
RE: ln() vs. log() - Dave Shaffer - 04-17-2016, 11:50 PM
RE: ln() vs. log() - Tim Wessman - 04-18-2016, 01:37 AM
RE: ln() vs. log() - StephenG1CMZ - 04-25-2016, 03:59 PM
RE: ln() vs. log() - Katie Wasserman - 04-18-2016, 02:48 AM
RE: ln() vs. log() - Han - 04-18-2016, 03:05 AM
RE: ln() vs. log() - wojtek - 04-18-2016, 03:42 AM
RE: ln() vs. log() - Jeff_Kearns - 04-18-2016, 10:51 AM
RE: ln() vs. log() - Thomas Radtke - 04-18-2016, 01:14 PM
RE: ln() vs. log() - jebem - 04-19-2016, 02:00 PM
RE: ln() vs. log() - Dieter - 04-19-2016, 09:47 PM
RE: ln() vs. log() - Tugdual - 04-18-2016, 01:25 PM
RE: ln() vs. log() - emece67 - 04-18-2016, 02:41 PM
RE: ln() vs. log() - Andres - 05-13-2022, 10:38 PM
RE: ln() vs. log() - Csaba Tizedes - 04-18-2016, 04:38 PM
RE: ln() vs. log() - Joe Horn - 04-19-2016, 05:33 AM
RE: ln() vs. log() - jebem - 04-19-2016, 12:48 PM
RE: ln() vs. log() - Csaba Tizedes - 04-20-2016, 07:33 AM
RE: ln() vs. log() - emece67 - 04-20-2016, 08:45 AM
RE: ln() vs. log() - emece67 - 04-20-2016, 10:23 AM
RE: ln() vs. log() - JurgenRo - 04-21-2016, 07:52 PM
RE: ln() vs. log() - Marcus von Cube - 04-24-2016, 02:38 PM
RE: ln() vs. log() - Dieter - 04-25-2016 06:38 AM
RE: ln() vs. log() - Thomas Klemm - 05-13-2022, 11:15 AM
RE: ln() vs. log() - KeithB - 05-16-2022, 01:18 PM



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