help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: log to arbitrary base


From: Carlo De Falco
Subject: Re: log to arbitrary base
Date: Tue, 18 Aug 2015 11:14:12 +0000

On 18 Aug 2015, at 00:23, Eric Smith <address@hidden> wrote:

> Hi
> 
> Both qalc (1) and Matlab have a log function like;
>  log(125, 5) = 3
> 
> How do I find the log to base n with Octave?
> 
> Eric

To find the logarithm to base 5 you can just do:

>> log (125) / log (5)
ans =  3.0000

Are you sure the two arguments version of 'log' works in Matlab?
The online documentation doesn't seem to say so:

http://it.mathworks.com/help/matlab/ref/log.html

c.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]