public class SquareRoot extends PostfixMathCommand
| Constructor and Description |
|---|
SquareRoot() |
| Modifier and Type | Method and Description |
|---|---|
void |
run(Stack inStack)
Applies the function to the parameters on the stack.
|
Object |
sqrt(Object param)
Calculates the square root of the parameter.
|
checkNumberOfParameters, getNumberOfParameters, setCurNumberOfParameterspublic void run(Stack inStack) throws ParseException
run in interface PostfixMathCommandIrun in class PostfixMathCommandParseExceptionpublic Object sqrt(Object param) throws ParseException
ParseExceptionJas4pp 1.5 © Java Analysis Studio for Particle Physics