Class StrictNaturalLogarithm

All Implemented Interfaces:
PostfixMathCommandI, RealUnaryFunction, Serializable

public class StrictNaturalLogarithm extends UnaryFunction implements RealUnaryFunction
A strict version of Natural logarithm. For negative Double arguments his class will return Double.NaN. The standard NaturalLogarithm class will convert treat the argument and compute the complex logarithm.
See Also:
  • Constructor Details

    • StrictNaturalLogarithm

      public StrictNaturalLogarithm(double base)
      Logarithm to any other base. new StrictNaturalLogarithm(10) for base 10, new StrictNaturalLogarithm(2) for base 2.
      Parameters:
      base - base to use
    • StrictNaturalLogarithm

      public StrictNaturalLogarithm()
      Standard base-e logarithm.
  • Method Details