Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4323012

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 1.2.2
    • 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)
      ======================================================================

            darcy Joe Darcy
            skonchad Sandeep Konchady
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: