Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#4497 closed enhancement (invalid)

Implement the function log10

Reported by: TimothyClemans Owned by: somebody
Priority: minor Milestone: sage-duplicate/invalid/wontfix
Component: basic arithmetic Keywords:
Cc: Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description

"very useful for those who use a lot logarithmic scale" - Ronan Paixão

Change History (3)

comment:1 Changed 12 years ago by mabshoff

Why this ticket? We already have

sage: log_b?
Type:		function
Base Class:	<type 'function'>
String Form:	<function log at 0x29b33f0>
Namespace:	Interactive
File:		/Users/michaelabshoff/Desktop/sage-3.1.3.rc0/local/lib/python2.5/site-packages/sage/misc/functional.py
Definition:	log_b(x, b=None)
Docstring:
    
        Return the log of x to the base b.  The default base is e.
    
        INPUT:
            x -- number
            b -- base (default: None, which means natural log)
            
        OUTPUT:
            number
    
        NOTE: In Magma, the order of arguments is reversed from in
        SAGE, i.e., the base is given first.  We use the opposite
        ordering, so the base can be viewed as an optional second
        argument.

One could obviously implement log10, but why pollute the global namespace even more?

Cheers,

Michael

comment:2 Changed 12 years ago by was

  • Resolution set to invalid
  • Status changed from new to closed

Pari, Maple, and Mathematica all don't do this. We should not do this in Sage either. It is trivial to implement in terms of existing functions.

comment:3 Changed 12 years ago by mabshoff

  • Milestone changed from sage-3.2.1 to sage-duplicate/invalid/wontfix
Note: See TracTickets for help on using tickets.