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, setCurNumberOfParameters
public void run(java.util.Stack inStack) throws ParseException
run
in interface PostfixMathCommandI
run
in class PostfixMathCommand
ParseException
public java.lang.Object sqrt(java.lang.Object param) throws ParseException
ParseException
http://www.singularsys.com/jep Copyright © 2007 Singular Systems