Class java.lang.Math needs a logarithm function with base other than 'e'

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 1.2.2
    • Component/s: core-libs
    • generic
    • generic



      Name: skT88420 Date: 03/17/2000


      not necessary

      The java.lang.Math.log() function only has log base 'e'. The function Math.log()
      should take two parameters:

      public double log( double a, int base );

      in order to compensate for logarithms of other bases. a simple fix would be to
      add

      public double log( double a, int base ){
         return log( a ) / log( base );
      }

      to the Math class.

      oh, and on the bug form, there needs to be an 'annoying missing feature' button.
      (Review ID: 102613)
      ======================================================================

            Assignee:
            Joe Darcy
            Reporter:
            Sandeep Konchady
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: