help-octave
[Top][All Lists]
Advanced

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

Re: log to arbitrary base


From: James Sherman Jr.
Subject: Re: log to arbitrary base
Date: Tue, 18 Aug 2015 09:52:56 -0400

On Tue, Aug 18, 2015 at 7:14 AM, Carlo De Falco <address@hidden> wrote:
>
> 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.
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/help-octave

It could be some kind of addon, but I tried log(9,3) in Matlab, and it
came back with a too many arguments error, as expected.

James Sherman



reply via email to

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