Fonction Log()

In this category you can exchange your programming questions and solutions.
Post Reply
azarus
Posts: 5
Joined: Tue Nov 08, 2005 3:00 pm

Fonction Log()

Post: # 493Post azarus
Sun Aug 16, 2009 5:56 pm

I have tried:
showmessage str$ (log(2.718281))
I obtain 1.3132 => Log() is not natural logarithm :ln(e)=1
I have tried:
showmessage str$ (Log(10))
I obtain 2.39 => Log() is not based on 10
It seems that with Fnxbasic ln(x)= Log(x-1).How is it possible ??

Marco
Site Admin
Posts: 246
Joined: Sat Sep 15, 2018 8:41 pm

Fonction Log()

Post: # 494Post Marco
Mon Aug 17, 2009 4:44 pm

The function log without parameter will return the log of xp1 wich is the natural log of (X+1). I will fix it in the new version.
To get the natural log do log(2.7-1) or log(2.7,2.7)
Best regards

Post Reply