|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.singularsys.jep.functions.PostfixMathCommand
com.singularsys.jep.functions.Ceil
public class Ceil
A PostfixMathCommandI which find the smallest integer above the number ceil(pi) give 4 ceil(-i) give -3
| Field Summary |
|---|
| Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand |
|---|
curNumberOfParameters, numberOfParameters |
| Constructor Summary | |
|---|---|
Ceil()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
ceil(java.lang.Object param)
|
double |
evaluate(double val)
|
void |
run(java.util.Stack<java.lang.Object> inStack)
Run the function on the stack. |
| Methods inherited from class com.singularsys.jep.functions.PostfixMathCommand |
|---|
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParameters |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Ceil()
| Method Detail |
|---|
public void run(java.util.Stack<java.lang.Object> inStack)
throws EvaluationException
PostfixMathCommandI
run in interface PostfixMathCommandIEvaluationException
public java.lang.Object ceil(java.lang.Object param)
throws EvaluationException
EvaluationExceptionpublic double evaluate(double val)
evaluate in interface RealUnaryFunction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||