bugGNU Octave - Bugs: bug #53503, log(m,n): requesting a function to...

 
 

bug #53503: log(m,n): requesting a function to directly compute logm(n).

Submitter:  None
Submitted:  Wed 28 Mar 2018 06:08:43 PM UTC
   
 
Category:  Octave Function Severity:  1 - Wish
Priority:  3 - Low Item Group:  Feature Request
Status:  Wont Fix Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.2.1
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 28 Mar 2018 08:31:54 PM UTC, comment #3: 

Agree with Mike.  It is quite simple to use mathematical formulas to calculate the logarithm with respect to any base.  In addition, the name 'logm' is already reserved for the logarithm of a matrix, not the logarithm with respect to base m.

Just because this won't be inmplemented in core Octave doesn't mean you can't keep it in your own library of functions.  See comment #2 and Dildar's m-file for an example of such a function.  Use 'addpath' in your .octaverc file to add your personal library of functions to Octave whenever the program is started.

Rik <rik5>
Group administrator
Wed 28 Mar 2018 06:53:42 PM UTC, comment #2: 

Here you go.
I made a very rough function for this.
I can add tests if I am told.

(file #43710)

Dildar Sk <hodor123456>
Wed 28 Mar 2018 06:23:54 PM UTC, comment #1: 

Thank you for your bug report. I assume you mean a function to compute the logarithm of a number n with respect to a base m? If I am wrong, please clarify.

If that is correct, I think it's very unlikely that this function will be added in Octave. Octave already includes the functions log, log2, and log10, each of which are well-known functions in the standard C math library as well as in Matlab. And everyone already knows how to compute the logarithm with a different base using these existing functions. It is hard to see what the benefit of a new function or additional arguments would be.

Mike Miller <mtmiller>
Group Member
Wed 28 Mar 2018 06:08:43 PM UTC, original submission:  

There is function available to directly compute logm(n)
or log(m,n). It would be very helpful if it gets implemented.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #43710:  log1.m added by hodor123456 (1KiB - text/x-objcsrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by hodor123456 (Updated the item)
  • -email is unavailable- added by mtmiller (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-03-28 rik5 StatusNeed Info Wont Fix
        Open/ClosedOpen Closed
    2018-03-28 hodor123456 Attached File- Added log1.m, #43710
    2018-03-28 mtmiller Severity3 - Normal 1 - Wish
        Priority5 - Normal 3 - Low
        StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code