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, setCurNumberOfParameters
public void run(Stack inStack) throws ParseException
run
in interface PostfixMathCommandI
run
in class PostfixMathCommand
ParseException
public Object sqrt(Object param) throws ParseException
ParseException
Jas4pp 1.5 © Java Analysis Studio for Particle Physics