org.shiftone.bigcalc.math.function
Class NaturalLog

java.lang.Object
  extended byorg.shiftone.bigcalc.math.function.NaturalLog
All Implemented Interfaces:
MathConstants

public class NaturalLog
extends java.lang.Object
implements MathConstants

Version:
$Revision: 1.7 $
Author:
$Author: jeffdrost $

Field Summary
 
Fields inherited from interface org.shiftone.bigcalc.math.MathConstants
BD_239, FIVE, FOUR, I_TWO, ONE, TWO, ZERO
 
Constructor Summary
NaturalLog()
           
 
Method Summary
static java.math.BigDecimal ln(java.math.BigDecimal x, int scale)
           
static java.math.BigDecimal lnOfXplusOne(java.math.BigDecimal x, int scale)
          ln(1+x) = x - x^2/2 + x^3/3 - ...
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NaturalLog

public NaturalLog()
Method Detail

lnOfXplusOne

public static java.math.BigDecimal lnOfXplusOne(java.math.BigDecimal x,
                                                int scale)
ln(1+x) = x - x^2/2 + x^3/3 - ... -(-x)^N+1/(N+1) + ...


ln

public static java.math.BigDecimal ln(java.math.BigDecimal x,
                                      int scale)

main

public static void main(java.lang.String[] args)