Calculation question

General discussions about LaunchBar

Calculation question

Postby donkeyotay » Tue Jun 09, 2009 5:34 pm

On the Launchbar web site are various screenshots, one of which shows the following calculation:
log(sin(pi/2)/sqrt(3))

With the answer
-0.238560627

In a moment of boredom I tried to replicate this and failed miserably. When I calculate using LB I get the following answer
-1.800617788

However, if I do the calculation in the new Wolfram Alpha engine I get the following answer
-0.549306144334054845697622618461262852323745278911374725867

Can someone tell me which one is correct & why there is a discrepancy between the web site & my LB or between Wolfram Alpha & my LB?
Best wishes
Simon
donkeyotay
 
Posts: 9
Joined: Fri Jan 18, 2008 6:02 pm

Re: Calculation question

Postby norbert » Tue Jun 09, 2009 8:20 pm

donkeyotay wrote:On the Launchbar web site are various screenshots, one of which shows the following calculation:
log(sin(pi/2)/sqrt(3))

With the answer
-0.238560627



You get -0.238560627 when the trigonometry mode is set to "Radian" (see LaunchBar Preferences > Calculator).

donkeyotay wrote:In a moment of boredom I tried to replicate this and failed miserably. When I calculate using LB I get the following answer
-1.800617788



You get -1.800617788 when the trigonometry mode is set to "Degree".

donkeyotay wrote:However, if I do the calculation in the new Wolfram Alpha engine I get the following answer
-0.549306144334054845697622618461262852323745278911374725867



Wolfram Alpha considers log() to be the natural logarithm. In LaunchBar this is the common logarithm (base 10), whereas ln() denotes the natural logarithm.
norbert
Objective Development
Objective Development
 
Posts: 493
Joined: Thu Nov 09, 2006 5:30 pm

Re: Calculation question

Postby donkeyotay » Wed Jun 10, 2009 9:38 pm

Thank you for such a masterly reply.
Best wishes
Simon
donkeyotay
 
Posts: 9
Joined: Fri Jan 18, 2008 6:02 pm


Return to LaunchBar General

Who is online

Users browsing this forum: No registered users and 2 guests