|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.shiftone.bigcalc.core.function.AbstractNoArgumentFunction org.shiftone.bigcalc.math.constants.NumericConstantFileFunction
As it turns out, it's way faster to just load 10k digits of pi from a file than it is to calculate it - who knew.
Constructor Summary | |
NumericConstantFileFunction(java.lang.String resourceName)
|
Method Summary | |
java.lang.Object |
evaluate(Context context)
|
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 |
public NumericConstantFileFunction(java.lang.String resourceName)
Method Detail |
public java.lang.Object evaluate(Context context) throws java.lang.Exception
evaluate
in interface Functor
java.lang.Exception
public void print(java.lang.StringBuffer sb, Context context) throws java.lang.Exception
print
in interface Functor
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |