org.shiftone.bigcalc.math.function
Class CalcEFunction

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

public class CalcEFunction
extends AbstractNoArgumentFunction
implements Function, MathConstants

Version:
$Revision: 1.10 $
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
CalcEFunction()
           
 
Method Summary
 java.lang.Object _evaluate(Context stdContext)
           
 java.lang.Object evaluate(Context context)
           
static java.math.BigDecimal getE(int scale)
           
 void print(java.lang.StringBuffer sb, Context context)
           
 
Methods inherited from class org.shiftone.bigcalc.core.function.AbstractNoArgumentFunction
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
 

Constructor Detail

CalcEFunction

public CalcEFunction()
Method Detail

evaluate

public java.lang.Object evaluate(Context context)
                          throws java.lang.Exception
Specified by:
evaluate in interface Functor
Throws:
java.lang.Exception

getE

public static java.math.BigDecimal getE(int scale)

_evaluate

public java.lang.Object _evaluate(Context stdContext)
                           throws java.lang.Exception
Throws:
java.lang.Exception

print

public void print(java.lang.StringBuffer sb,
                  Context context)
           throws java.lang.Exception
Specified by:
print in interface Functor
Throws:
java.lang.Exception