org.shiftone.bigcalc.math.function
Class NaturalExponent

java.lang.Object
  extended byorg.shiftone.bigcalc.core.function.AbstractOneArgumentFunction
      extended byorg.shiftone.bigcalc.math.function.NaturalExponent
All Implemented Interfaces:
Function, Functor, MathConstants

public class NaturalExponent
extends AbstractOneArgumentFunction
implements Function, 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
NaturalExponent()
           
 
Method Summary
 java.lang.Object evaluate(Context stdContext, java.lang.Object argument)
           
static java.math.BigDecimal exp(java.math.BigDecimal x, int scale)
          exp(x) = e^x .
static void main(java.lang.String[] args)
           
 
Methods inherited from class org.shiftone.bigcalc.core.function.AbstractOneArgumentFunction
evaluate, print, setArguments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.shiftone.bigcalc.Function
setArguments
 
Methods inherited from interface org.shiftone.bigcalc.Functor
evaluate, print
 

Constructor Detail

NaturalExponent

public NaturalExponent()
Method Detail

evaluate

public java.lang.Object evaluate(Context stdContext,
                                 java.lang.Object argument)
                          throws java.lang.Exception
Specified by:
evaluate in class AbstractOneArgumentFunction
Throws:
java.lang.Exception

exp

public static java.math.BigDecimal exp(java.math.BigDecimal x,
                                       int scale)
exp(x) = e^x . exp(x) = 1 + x/1! + x^2/2! + x^3/3! + x^4/4! + ...


main

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