public class SquareRoot extends PostfixMathCommand
curNumberOfParameters, numberOfParameters| Constructor and Description |
|---|
SquareRoot() |
| Modifier and Type | Method and Description |
|---|---|
void |
run(java.util.Stack inStack)
Applies the function to the parameters on the stack.
|
java.lang.Object |
sqrt(java.lang.Object param)
Calculates the square root of the parameter.
|
checkNumberOfParameters, checkStack, getNumberOfParameters, setCurNumberOfParameterspublic void run(java.util.Stack inStack)
throws ParseException
run in interface PostfixMathCommandIrun in class PostfixMathCommandParseExceptionpublic java.lang.Object sqrt(java.lang.Object param)
throws ParseException
ParseExceptionhttp://www.singularsys.com/jep Copyright © 2007 Singular Systems