net.charlesames.utility.math
Class Logarithm

java.lang.Object
  extended by net.charlesames.utility.math.Logarithm

public class Logarithm
extends java.lang.Object

Calculates logarithms to a specified base.

Author:
Charles Ames

Constructor Summary
Logarithm(double base)
          Constructor for Logarithm instances
 
Method Summary
 double getBase()
           
 double log(double arg)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logarithm

public Logarithm(double base)
Constructor for Logarithm instances

Parameters:
base -
Method Detail

getBase

public double getBase()
Returns:
A positive number.

log

public double log(double arg)
Parameters:
arg -
Returns:
The power to which one would raise the base in order to obtain arg.